*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:#f6f8fc;color:#172033}.wrap{width:min(1050px,100%);margin:auto;padding:24px 16px 40px}header{background:linear-gradient(135deg,#111827,#1e3a8a);color:#fff;border-radius:22px;padding:25px;margin-bottom:18px;box-shadow:0 15px 40px #1e3a8a22}h1{margin:0;font-size:28px}header p{margin:7px 0 0;color:#dbeafe;font-size:14px}.panel{background:#fff;border:1px solid #e6eaf0;border-radius:18px;padding:20px;margin-bottom:16px;box-shadow:0 8px 25px #0f172a0a}.drop{display:block;border:2px dashed #cbd5e1;border-radius:16px;padding:36px 15px;text-align:center;cursor:pointer;background:#f8fafc}.drop:hover,.drop.over{border-color:#2563eb;background:#eff6ff}.drop-icon{font-size:34px;margin-bottom:8px}.drop b{display:block;font-size:17px;margin-bottom:6px}.drop span{font-size:13px;color:#64748b}input[type=file]{display:none}.controls{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}.field label{display:block;font-size:11px;font-weight:700;color:#64748b;margin:0 0 5px 2px;text-transform:uppercase}.field input,.field select,button,textarea{width:100%;min-height:44px;border:1px solid #d9dee7;border-radius:11px;padding:10px 12px;background:#fff;font:inherit;color:#172033}.primary{background:#2563eb;color:#fff;border-color:#2563eb;font-weight:700;cursor:pointer}.primary:hover{background:#1d4ed8}.secondary{background:#fff;font-weight:700;cursor:pointer}.status{margin-top:12px;color:#64748b;font-size:13px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px}.preview{border:1px solid #e6eaf0;border-radius:13px;padding:7px;background:#fff}.preview img{width:100%;height:145px;object-fit:contain;background:#f8fafc;border-radius:9px}.preview p{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:8px 3px 3px;color:#475569}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.tool-card{display:block;text-decoration:none;color:inherit;border:1px solid #e6eaf0;border-radius:15px;padding:18px;background:#fff;transition:.18s}.tool-card:hover{transform:translateY(-2px);box-shadow:0 10px 25px #0f172a12}.tool-icon{font-size:28px}.tool-card h2{font-size:16px;margin:10px 0 5px}.tool-card p{font-size:13px;color:#64748b;margin:0;line-height:1.5}.result{text-align:center}.result img{max-width:100%;max-height:500px;border-radius:12px;background:#f8fafc}.notice{padding:12px;border-radius:10px;background:#eff6ff;color:#1e40af;font-size:13px}@media(max-width:700px){.wrap{padding:14px 10px 30px}.controls{grid-template-columns:1fr 1fr}.controls .full{grid-column:1/-1}}@media(max-width:430px){.controls{grid-template-columns:1fr}.controls .full{grid-column:auto}.panel{padding:14px}}

.ad-slot{min-height:70px;border:1px dashed #d7dee8;border-radius:12px;background:#fafbfc;display:flex;align-items:center;justify-content:center;color:#94a3b8;font-size:10px;margin:14px 0}.dark .ad-slot{background:#0b1220;border-color:#334155}

.tool-head{display:flex;align-items:center;gap:12px;margin-bottom:15px}
.tool-head .tool-icon{width:48px;height:48px;border-radius:14px;background:#dbeafe;display:grid;place-items:center;font-size:24px}
.batch-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.batch-actions button{width:auto;min-width:120px}
.progress{height:8px;background:#e8edf5;border-radius:999px;overflow:hidden;margin-top:12px}
.progress>i{display:block;height:100%;width:0;background:#2563eb;transition:width .2s}
.result-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}
.result-card{border:1px solid #e6eaf0;border-radius:14px;padding:8px;background:#fff}
.result-card img{width:100%;height:150px;object-fit:contain;background:#f8fafc;border-radius:9px}
.file-meta{font-size:11px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:7px 2px}
.dark .tool-head .tool-icon{background:#172554}.dark .result-card{background:#111827;border-color:#263244}


/* ToolsHub v11 — premium visual system */
:root{--th-navy:#142440;--th-navy-2:#20395f;--th-gold:#d6a94f;--th-gold-soft:#f4e4bd;--th-bg:#f3f5f9;--th-card:#fff;--th-ink:#18243a;--th-muted:#718096;--th-line:#e5eaf1;--th-shadow:0 14px 38px rgba(20,36,64,.075)}
html{background:var(--th-bg)}body{background:var(--th-bg);color:var(--th-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:-.012em}.wrap{width:min(1120px,100%);padding:28px 20px 54px}
header,.brand-header{background:radial-gradient(ellipse at 88% 0%,rgba(214,169,79,.23),transparent 38%),linear-gradient(135deg,#101d34 0%,#172d4d 58%,#243e66 100%);border:1px solid rgba(255,255,255,.09);border-radius:25px;padding:26px 28px;color:#fff;box-shadow:0 18px 45px rgba(17,35,62,.18);position:relative;overflow:hidden}
.brand-header:after{content:"";position:absolute;width:260px;height:260px;border:1px solid rgba(231,194,119,.17);border-radius:50%;right:-105px;bottom:-175px;box-shadow:0 0 0 22px rgba(231,194,119,.035),0 0 0 48px rgba(231,194,119,.025);pointer-events:none}
.brand-top{display:flex;align-items:center;justify-content:space-between;gap:18px;position:relative;z-index:1}.brand-lockup{display:flex;align-items:center;gap:14px}.brand-lockup>img{width:62px;height:62px;border-radius:18px;box-shadow:0 8px 22px #0004}.brand-kicker{display:block;font-size:9px;font-weight:800;letter-spacing:.17em;color:#e7c277;margin-bottom:5px}.brand-header h1{font-size:31px;letter-spacing:-.045em;font-weight:850;line-height:1}.brand-header p{font-size:14px;color:#d5dfed;margin:15px 0 0 76px;max-width:600px}.brand-actions{display:flex;gap:8px;align-items:center}.brand-actions button{width:auto;min-height:38px;border-radius:11px;padding:0 13px;font-size:12px;font-weight:750}.theme{float:none;margin:0;background:rgba(255,255,255,.09);color:#fff;border:1px solid rgba(255,255,255,.2)}.theme:hover{background:rgba(255,255,255,.16)}.install{background:linear-gradient(135deg,#f0d28f,#c99a43)!important;color:#18243a!important;border:0!important}.hero-meta{display:flex;gap:17px;flex-wrap:wrap;margin:16px 0 0 76px;color:#e8d5ad;font-size:11px;font-weight:650;position:relative;z-index:1}
.ad-slot{border:1px dashed #d6dce6;background:#f8f9fb;color:#a0a9b8;border-radius:13px}.panel,.v5box{background:var(--th-card);border:1px solid var(--th-line);border-radius:19px;box-shadow:var(--th-shadow);padding:20px}.v5box{padding:17px 19px}.v5num{color:var(--th-navy);font-weight:850;letter-spacing:-.04em}.v5box h3{color:#263650}.v5box p{color:var(--th-muted)}.search{margin-bottom:15px}.search input{height:52px;border-radius:14px;background:#f8fafc;border:1px solid #e3e8ef;padding-left:48px}.search span{left:17px;top:15px;color:#8793a5}.search input:focus{background:#fff;border-color:#d6a94f;box-shadow:0 0 0 4px rgba(214,169,79,.14)}
.nav{gap:8px;margin-bottom:17px}.nav button{border-radius:999px;background:#f7f8fa;border-color:#e5eaf1;color:#58667a;font-weight:700}.nav button.active{background:var(--th-navy);border-color:var(--th-navy);color:#fff;box-shadow:0 5px 12px #14244026}.cards{grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:13px}.tool-card{min-height:146px;border:1px solid #e8ecf2;border-radius:18px;padding:17px 17px 18px 82px;background:linear-gradient(145deg,#fff,#fbfcfe);box-shadow:0 4px 14px rgba(20,36,64,.025);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;position:relative}.tool-card:hover{transform:translateY(-4px);border-color:#e2c98e;box-shadow:0 14px 28px rgba(20,36,64,.10)}.tool-card .tool-icon{position:absolute;left:16px;top:19px;width:52px;height:52px;font-size:0;display:block}.tool-symbol{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 8px rgba(20,36,64,.12))}.tool-card h2{font-size:14px;font-weight:800;letter-spacing:-.02em;margin:4px 0 7px;color:#1d2b43;line-height:1.3}.tool-card p{font-size:11.5px;line-height:1.5;color:#78869a;margin:0}.tool-card .tag{right:12px;top:12px;font-size:9px;text-transform:uppercase;letter-spacing:.06em;font-weight:800;background:#f4f0e7;color:#9a7638;padding:4px 7px}.fav-btn{right:12px;bottom:10px;width:29px!important;height:29px;min-height:29px;padding:0;border-radius:9px;color:#9a7b45;background:#f9f6ef;border:1px solid #f0e7d4}.fav-btn.on{background:#f5e8c9;color:#9b6c17}.recent a{background:#f8f9fb;border:1px solid #e7ebf1;border-radius:999px;color:#526176;padding:8px 13px}.back-home{display:inline-flex;align-items:center;padding:8px 12px;border-radius:10px;background:#fff;border:1px solid #e5eaf1;color:#43536a!important;font-weight:700!important;box-shadow:0 3px 10px #14244008}
.tool-page-header{padding:20px 24px 22px;margin-bottom:18px;border-radius:21px}.tool-brand-mini{display:flex;align-items:center;gap:9px;font-size:10px;letter-spacing:.12em;font-weight:850;color:#e7c277;margin-bottom:16px}.tool-brand-mini img{width:31px;height:31px;border-radius:9px}.tool-brand-mini i{display:block;font-style:normal;font-size:8px;letter-spacing:.15em;color:#b9c7d9;margin-top:2px}.tool-page-header h1{font-size:25px;font-weight:850;letter-spacing:-.035em}.tool-page-header p{font-size:13px;color:#d5dfed}.tool-title-row{display:flex;align-items:center;gap:12px}.tool-title-mark{display:none}.drop{border:1.5px dashed #c9d3e0;background:#f8fafc;border-radius:17px;padding:35px 15px;transition:.18s}.drop:hover,.drop.over{border-color:#d6a94f;background:#fffbf2}.drop-icon{width:70px;height:70px;margin:0 auto 12px;font-size:0}.drop-icon .tool-symbol{width:70px;height:70px}.drop b{color:#24344e}.drop span{color:#7b899b}.field label{color:#718096;font-size:10px;letter-spacing:.07em}.field input,.field select,button,textarea{border-color:#dfe5ed;border-radius:12px}.field input:focus,.field select:focus,textarea:focus{outline:none;border-color:#d6a94f;box-shadow:0 0 0 3px rgba(214,169,79,.13)}button.primary,.primary{background:linear-gradient(135deg,#243f68,#142440);border:0;color:#fff;font-weight:800;box-shadow:0 6px 14px rgba(20,36,64,.16)}button.primary:hover,.primary:hover{background:linear-gradient(135deg,#304f7e,#1b3152)}button.secondary,.secondary{font-weight:750}.status{color:#748196}.result-grid .result-card,.result-card,.preview{border-radius:15px;border-color:#e5eaf1}.notice{background:#fbf5e8;color:#7f612e;border:1px solid #f0e2c4}.progress>i{background:linear-gradient(90deg,#d6a94f,#f0d28f)}
.dark body,.dark{background:#0b1424!important;color:#e8edf5}.dark .panel,.dark .tool-card,.dark .v5box{background:#121f33;border-color:#263751;box-shadow:0 12px 28px #0002}.dark .tool-card{background:linear-gradient(145deg,#15243a,#111d30)}.dark .tool-card h2,.dark .v5box h3{color:#edf2f8}.dark .tool-card p,.dark .v5box p,.dark .status{color:#9aabc0}.dark .search input,.dark .field input,.dark .field select,.dark textarea{background:#0c1728;color:#e8edf5;border-color:#30415a}.dark .nav button{background:#16243a;border-color:#2b3d57;color:#b7c5d7}.dark .nav button.active{background:#d6a94f;color:#17243c;border-color:#d6a94f}.dark .recent a{background:#16243a;border-color:#2b3d57;color:#dce5f0}.dark .tool-card .tag{background:#2a2a28;color:#e5c47e}.dark .fav-btn{background:#1d2b40;border-color:#394a61;color:#e4c47e}.dark .drop{background:#101d30;border-color:#3b4d66}.dark .drop b{color:#e8edf5}.dark .drop span{color:#a5b3c5}.dark .back-home{background:#17263b;border-color:#2b3d57;color:#dce5f0!important}.dark .ad-slot{background:#101d30;border-color:#30415a}.dark .result-card,.dark .preview{background:#142239;border-color:#2b3d57}.dark .preview img,.dark .result-card img{background:#0d1829}
@media(max-width:700px){.wrap{padding:15px 12px 36px}.brand-header{padding:20px 18px;border-radius:21px}.brand-lockup>img{width:51px;height:51px;border-radius:15px}.brand-header h1{font-size:26px}.brand-kicker{font-size:8px}.brand-header p{margin:13px 0 0;font-size:12px}.hero-meta{margin:13px 0 0;gap:10px;font-size:10px}.brand-top{align-items:flex-start}.brand-actions{flex-direction:column;align-items:stretch}.brand-actions button{min-height:34px;padding:0 10px;font-size:10px}.panel{padding:15px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tool-card{min-height:142px;padding:76px 12px 16px}.tool-card .tool-icon{left:12px;top:12px;width:49px;height:49px}.tool-card h2{font-size:13px;margin-top:0}.tool-card p{font-size:10.5px}.tool-card .tag{right:9px;top:9px;font-size:8px}.fav-btn{right:8px;bottom:8px}.tool-page-header{padding:17px 17px 19px}.tool-page-header h1{font-size:22px}.v5box{padding:13px}.nav{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.nav button{white-space:nowrap}.tool-brand-mini{margin-bottom:12px}}
@media(max-width:380px){.cards{grid-template-columns:1fr}.tool-card{min-height:108px;padding:17px 45px 16px 76px}.tool-card .tool-icon{top:25px}.brand-lockup{gap:9px}.brand-lockup>img{width:45px;height:45px}.brand-header h1{font-size:23px}}
