:root{--bg:#f4f6fb;--surface:#ffffff;--surface-2:#f0f3f9;--text:#0f172a;--muted:#5b6472;--border:#dfe3ec;--accent:#2457d6;--accent-ink:#ffffff;--focus:#93b4ff;--ok:#15803d;--warn:#b45309;--bad:#b91c1c;--shadow:0 1px 2px rgba(15,23,42,.06),0 8px 24px -12px rgba(15,23,42,.18)}
:root[data-theme="dark"]{--bg:#0b1020;--surface:#121a2e;--surface-2:#182338;--text:#e7ebf3;--muted:#9aa5b8;--border:#233150;--accent:#6ea0ff;--accent-ink:#0b1020;--focus:#3b6fd6;--ok:#4ade80;--warn:#fbbf24;--bad:#f87171;--shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px -12px rgba(0,0,0,.6)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--bg:#0b1020;--surface:#121a2e;--surface-2:#182338;--text:#e7ebf3;--muted:#9aa5b8;--border:#233150;--accent:#6ea0ff;--accent-ink:#0b1020;--focus:#3b6fd6;--ok:#4ade80;--warn:#fbbf24;--bad:#f87171;--shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px -12px rgba(0,0,0,.6)}}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif}
a{color:var(--accent)}a:hover{text-decoration-thickness:2px}
img{max-width:100%;height:auto}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:6px}
.skip{position:absolute;left:-999px;top:8px;background:var(--accent);color:var(--accent-ink);padding:8px 12px;border-radius:8px;z-index:10}.skip:focus{left:8px}
.wrap{max-width:900px;margin:0 auto;padding:0 20px}
.topbar{border-bottom:1px solid var(--border);background:var(--surface)}
.topbar .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px}
.brand{display:inline-flex;align-items:center;gap:10px;font-weight:700;text-decoration:none;color:var(--text)}
.brand img{width:28px;height:28px;border-radius:6px}
.topnav{display:flex;align-items:center;gap:6px}
.topnav a{text-decoration:none;color:var(--text);padding:8px 10px;border-radius:8px}
.topnav a:hover{background:var(--surface-2)}
.iconbtn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid var(--border);background:var(--surface);border-radius:10px}
.iconbtn:hover{background:var(--surface-2)}
.iconbtn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
main{padding:28px 0 56px}
.crumbs{font-size:.9rem;color:var(--muted);margin:0 0 14px}
.crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.crumbs li+li::before{content:"›";margin-right:6px;color:var(--muted)}
.crumbs a{color:var(--muted)}
h1{font-size:clamp(1.75rem,3.6vw,2.4rem);line-height:1.15;margin:0 0 10px;letter-spacing:-.01em}
.lead{font-size:1.1rem;color:var(--muted);margin:0 0 24px;max-width:70ch}
h2{font-size:1.45rem;margin:44px 0 12px;letter-spacing:-.01em}
h3{font-size:1.1rem;margin:22px 0 8px}
p,li{max-width:75ch}
.card{background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow)}
.tool{padding:20px}
@media (min-width:640px){.tool{padding:26px}}
.tabs{display:flex;gap:6px;background:var(--surface-2);padding:4px;border-radius:12px;width:max-content;max-width:100%;margin-bottom:18px;flex-wrap:wrap}
.tabs button{border:0;background:transparent;padding:8px 14px;border-radius:9px;color:var(--muted);font-weight:600}
.tabs button[aria-selected="true"]{background:var(--surface);color:var(--text);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.btn{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border);background:var(--surface);padding:9px 14px;border-radius:10px;font-weight:600;line-height:1.2}
.btn:hover{background:var(--surface-2)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.btn.primary:hover{filter:brightness(1.06)}
.btn.sm{padding:6px 10px;font-size:.9rem}
.btn:disabled{opacity:.5;cursor:not-allowed}
.hint{font-size:.85rem;color:var(--muted);margin:6px 0 0}
.controls{display:grid;gap:16px;margin-top:18px}
@media (min-width:640px){.controls{grid-template-columns:1fr 1fr}}
.field{display:flex;flex-direction:column;gap:6px}
.field label,.field .lbl{font-weight:600;font-size:.95rem}
.rangerow{display:flex;align-items:center;gap:12px}
.rangerow input[type="range"]{flex:1;accent-color:var(--accent);min-width:0}
.rangerow input[type="number"]{width:86px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:var(--surface);text-align:center}
input[type="text"],input[type="email"],input[type="url"],input[type="date"],input[type="color"],select,textarea{padding:9px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);width:100%}
textarea{min-height:180px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;line-height:1.5}
.full{grid-column:1/-1}
.trust{display:grid;gap:10px;margin:18px 0 0;padding:0;list-style:none}
@media (min-width:640px){.trust{grid-template-columns:repeat(3,1fr)}}
.trust li{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px 14px;font-size:.92rem;max-width:none}
.trust li strong{display:block;margin-bottom:2px}
table{width:100%;border-collapse:collapse;font-size:.95rem;margin:14px 0}
th,td{text-align:left;padding:10px 10px;border-bottom:1px solid var(--border);vertical-align:top}
th{background:var(--surface-2);font-weight:600}
.tablewrap{overflow-x:auto;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
.tablewrap table{margin:0}
.faq h3{margin-top:20px}
.faq p{margin-top:4px}
.grid2{display:grid;gap:12px;margin-top:12px}
@media (min-width:640px){.grid2{grid-template-columns:1fr 1fr}}
.grid3{display:grid;gap:10px;margin-top:12px}
@media (min-width:640px){.grid3{grid-template-columns:repeat(3,1fr)}}
.tile{display:block;text-decoration:none;color:inherit;padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
.tile:hover{border-color:var(--accent)}
.tile strong{display:block;margin-bottom:4px;color:var(--accent)}
.tile span{color:var(--muted);font-size:.95rem}
.stat{background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:12px 14px}
.stat b{display:block;font-size:1.35rem;line-height:1.2}
.stat span{color:var(--muted);font-size:.85rem}
.drop{border:2px dashed var(--border);border-radius:14px;padding:28px 16px;text-align:center;background:var(--surface-2);cursor:pointer}
.drop.over{border-color:var(--accent);background:var(--surface)}
.drop input{display:none}
.preview{display:grid;gap:10px;margin-top:14px}
.preview-item{display:flex;gap:12px;align-items:center;border:1px solid var(--border);border-radius:12px;padding:10px;background:var(--surface)}
.preview-item img{width:64px;height:64px;object-fit:cover;border-radius:8px;background:var(--surface-2)}
.preview-item .meta{flex:1;min-width:0;font-size:.9rem}
.rowacts{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.resultbox{border:1px solid var(--border);background:var(--surface-2);border-radius:14px;padding:14px 16px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;word-break:break-all;white-space:pre-wrap}
.qrbox{display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px}
.qrbox canvas,.qrbox img{max-width:100%;border-radius:8px;background:#fff}
.aff{margin:28px 0;padding:18px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}
.aff h2{margin-top:0}
.aff .disc{font-size:.8rem;color:var(--muted)}
.adslot{margin:28px 0;min-height:0}
footer{border-top:1px solid var(--border);padding:22px 0 30px;color:var(--muted);font-size:.9rem}
footer .wrap{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;justify-content:space-between}
footer nav{display:flex;flex-wrap:wrap;gap:4px 14px}
footer a{color:var(--muted)}
.credit{width:100%;font-size:.82rem}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(20px);background:var(--text);color:var(--bg);padding:10px 16px;border-radius:10px;font-weight:600;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:20}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.swatch{width:100%;height:88px;border-radius:12px;border:1px solid var(--border)}
.tree{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9rem;max-height:360px;overflow:auto;background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:12px}
.err{color:var(--bad);font-size:.92rem}
.ok{color:var(--ok)}
.serps{border:1px solid var(--border);border-radius:12px;padding:14px 16px;background:#fff;color:#1a0dab}
.serps .surl{color:#006621;font-size:.85rem}
.serps .sdesc{color:#4d5156;font-size:.92rem}
.ogcard{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface);max-width:420px}
.ogcard img{width:100%;height:180px;object-fit:cover;background:var(--surface-2);display:block}
.ogcard .ogm{padding:10px 12px}
.ogcard .ogs{font-size:.75rem;color:var(--muted);text-transform:uppercase}
.steps{margin:0;padding-left:20px}
.steps li{margin:6px 0}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.hub{background:
	radial-gradient(900px 420px at 8% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
	radial-gradient(720px 360px at 110% 8%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 55%),
	var(--bg)}
.hubwrap{max-width:1080px}
.hubhero{padding:28px 0 8px}
.hubkicker{margin:0 0 8px;font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--accent)}
.hubhero h1{margin-bottom:8px}
.hubhero .lead{margin-bottom:18px}
.hubsearch{display:block;max-width:420px}
.hubsearch input{padding:12px 14px;border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}
.hubgroup{margin-top:28px}
.hubgroup h2{margin:0 0 12px;font-size:1.05rem;color:var(--muted);font-weight:650;letter-spacing:.01em}
.hubgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:12px;margin:0;padding:0;list-style:none}
.hubgrid li{margin:0;max-width:none}
.hubtile{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;min-height:148px;padding:18px 10px 14px;text-align:center;text-decoration:none;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow)}
.hubtile:hover{border-color:color-mix(in srgb, var(--ico, var(--accent)) 55%, var(--border));transform:translateY(-2px)}
.hubico{width:64px;height:64px;border-radius:16px;display:grid;place-items:center;background:transparent;color:var(--ico);flex:0 0 auto;overflow:visible}
.hubico svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.hubico img{width:64px;height:64px;display:block;border-radius:16px}
.hubtile strong{font-size:.92rem;line-height:1.25;font-weight:650;max-width:12ch}
.hubempty{margin:28px 0;color:var(--muted)}
.hubfoot{margin:40px 0 8px;color:var(--muted);font-size:.95rem}
.hub .topnav a[href$="/tools/"]{background:var(--surface-2)}
@media (min-width:720px){
	.hubhero{padding-top:40px}
	.hubgrid{grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:14px}
	.hubtile{min-height:168px;padding:22px 12px 16px}
	.hubico,.hubico img{width:72px;height:72px;border-radius:18px}
}
