/* ZeroFee Tools family theme - Free Filename Sanitizer */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --accent: #0d9488; --accent2: #0f766e; --ink: #1e293b; --muted: #64748b;
  --line: #e2e8f0; --bg: #f8fafc; --card: #ffffff; --ok: #16a34a;
  --warn: #d97706; --bad: #dc2626;
}
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
#siteHeader { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; padding: 26px 0 0; }
.header-inner { display: flex; align-items: center; }
.brand { display: flex; gap: 14px; align-items: center; }
.hub-link { color: #fff; text-decoration: none; font-size: .85rem; opacity: .85; display: block; margin-bottom: 2px; }
.hub-link:hover { opacity: 1; text-decoration: underline; }
.brand-name { font-size: 1.7rem; line-height: 1.1; }
.brand-tag { opacity: .9; font-size: .9rem; }
.free-banner { text-align: center; font-size: .82rem; padding: 10px 16px 14px; opacity: .95; }
#main { padding: 30px 0 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-top: 18px; }
.tool-ui h2 { font-size: 1.4rem; margin-bottom: 8px; }
label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 14px; }
input[type="text"], input[type="number"], input[type="url"], textarea, select {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 400;
}
textarea { resize: vertical; font-family: inherit; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
input[type="color"] { width: 48px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.check-row { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.check-row input { width: auto; margin: 0; }
.btn { border: none; border-radius: 10px; padding: 11px 22px; font-size: .95rem; font-weight: 700; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: #eef2ff; color: var(--accent); }
.btn-ghost:hover { background: #e0e7ff; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.result-box { background: #f8fafc; border: 1px dashed var(--accent); border-radius: 12px; padding: 16px 18px; margin-top: 16px; word-break: break-all; }
.result-box .big { font-size: 1.15rem; font-weight: 700; color: var(--accent2); }
.dropzone { border: 2px dashed var(--accent); border-radius: 16px; background: #fff; padding: 34px 20px; text-align: center; cursor: pointer; transition: .2s; }
.dropzone:hover, .dropzone.dragover { background: #f5f3ff; border-color: var(--accent2); }
.dropzone .dz-icon { font-size: 2.4rem; }
.dropzone p { margin: 8px 0 0; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.stat .v { font-size: 1.3rem; font-weight: 800; color: var(--accent2); }
.stat .l { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge.pass { background: #dcfce7; color: #166534; }
.badge.warn { background: #fef3c7; color: #92400e; }
.badge.fail { background: #fee2e2; color: #991b1b; }
.badge.info { background: #e0e7ff; color: #3730a3; }
.verdict-row { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 8px 0; }
.verdict-row .vr-body { flex: 1; }
.verdict-row .vr-name { font-weight: 700; }
.verdict-row .vr-note { font-size: .85rem; color: var(--muted); }
table.data { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .92rem; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.data th { background: #f8fafc; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.honesty-note { background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid var(--warn); border-radius: 12px; padding: 14px 18px; margin: 18px 0; font-size: .93rem; }
.honesty-note strong { color: #92400e; }
.checkerboard { background-image: linear-gradient(45deg, #cbd5e1 25%, transparent 25%), linear-gradient(-45deg, #cbd5e1 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #cbd5e1 75%), linear-gradient(-45deg, transparent 75%, #cbd5e1 75%); background-size: 22px 22px; background-position: 0 0, 0 11px, 11px -11px, -11px 0; background-color: #f1f5f9; }
.preview-frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 14px; }
.preview-frame img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.og-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; margin-bottom: 18px; }
.og-card .og-img { width: 100%; aspect-ratio: 1.91/1; object-fit: cover; display: block; background: #e2e8f0; }
.og-card .og-body { padding: 12px 14px; }
.og-card .og-domain { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.og-card .og-title { font-weight: 700; margin: 4px 0; line-height: 1.35; }
.og-card .og-desc { font-size: .85rem; color: var(--muted); line-height: 1.45; }
.og-label { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent2); margin: 22px 0 8px; }
.swatch-row { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.swatch { width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--line); }
.hex-input { display: flex; gap: 10px; align-items: center; }
.hex-input input[type="text"] { margin-top: 0; max-width: 130px; font-family: ui-monospace, monospace; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: #1e293b; color: #fff; padding: 12px 20px; border-radius: 12px; font-size: .9rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.hidden { display: none !important; }
