        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; }
        body { font-family: 'Inter', sans-serif; color: #1a1a1a; background: #fff; -webkit-font-smoothing: antialiased; }
        a { text-decoration: none; color: inherit; }
        ul { list-style: none; }

        :root {
            --yellow: #F5B800;
            --yellow-dark: #D9A200;
            --purple: #7C3AED;
            --purple-dark: #6D28D9;
            --brand-gradient: linear-gradient(135deg, #7C3AED 0%, #EC4899 50%, #F97316 100%);
            --dark: #0D0D0D;
            --gray: #6B7280;
            --gray-light: #F3F4F6;
            --border: #E5E7EB;
        }

        .nav {
            position: sticky; top: 0; z-index: 100;
            background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--border);
            height: 64px; padding: 0 48px;
            display: flex; align-items: center; justify-content: space-between;
        }
        .nav-links { display: flex; align-items: center; gap: 40px; }
        .nav-links a { font-size: 0.95rem; font-weight: 500; color: #374151; transition: color .15s; }
        .nav-links a:hover, .nav-links a.active { color: #111; }
        .nav-links a.active { font-weight: 600; }
        .nav-dropdown { position: relative; display: flex; align-items: center; }
        .nav-dropdown-trigger { display: flex; align-items: center; gap: 4px; background: none; border: none; cursor: pointer; padding: 0; font-size: 0.95rem; font-weight: 500; color: #374151; font-family: inherit; transition: color .15s; }
        .nav-dropdown:hover .nav-dropdown-trigger { color: #111; }
        .nav-dd-chevron { transition: transform .2s; color: #9CA3AF; }
        .nav-dropdown:hover .nav-dd-chevron { transform: rotate(180deg); }
        .nav-dropdown-menu { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.09); min-width: 264px; padding: 6px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility .2s; z-index: 200; }
        .nav-dropdown-menu::before { content: ''; position: absolute; top: -20px; left: -10px; right: -10px; height: 20px; }
        .nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; }
        .nav-dd-item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 12px; border-radius: 8px; text-decoration: none; color: inherit; transition: background .12s; }
        .nav-dd-item:hover { background: #F5F3FF; }
        .nav-dd-icon { width: 34px; height: 34px; border-radius: 8px; background: #EDE9FE; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
        .nav-dd-title { font-size: 0.875rem; font-weight: 600; color: #0F172A; margin-bottom: 2px; }
        .nav-dd-desc { font-size: 0.75rem; color: #6B7280; line-height: 1.4; }
        .nav-actions { display: flex; align-items: center; gap: 12px; }
        .btn-yellow { display: inline-flex; align-items: center; gap: 6px; background: var(--yellow); color: #111; font-weight: 700; font-size: 0.875rem; padding: 9px 20px; border-radius: 8px; border: none; cursor: pointer; transition: background .15s; text-decoration: none; }
        .btn-yellow:hover { background: var(--yellow-dark); color: #111; }
        .btn-auth { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-gradient); color: #fff; font-weight: 700; font-size: 0.875rem; padding: 9px 20px; border-radius: 8px; border: none; cursor: pointer; transition: opacity .15s; text-decoration: none; }
        .btn-auth:hover { opacity: .88; }

        .profile-avatar-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: #111; font-weight: 700; font-size: 0.875rem; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: box-shadow .15s; flex-shrink: 0; }
        .profile-avatar-btn:hover { box-shadow: 0 0 0 3px rgba(245,184,0,.3); }
        .profile-dropdown { position: fixed; min-width: 200px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.14); overflow: hidden; display: none; z-index: 9999; }
        .profile-dropdown.open { display: block; }
        .pd-header { padding: 12px 16px; border-bottom: 1px solid var(--border); background: #FAFAFA; }
        .pd-name { font-size: 0.825rem; font-weight: 600; color: #111; }
        .pd-email { font-size: 0.73rem; color: var(--gray); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
        .pd-list { padding: 6px 0; }
        .pd-item { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 0.825rem; color: #374151; transition: background .12s; cursor: pointer; text-decoration: none; }
        .pd-item:hover { background: var(--gray-light); color: #374151; }
        .pd-item svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; flex-shrink: 0; }
        .pd-item-danger { color: #DC2626; }
        .pd-item-danger:hover { background: #FEF2F2; color: #DC2626; }
        .pd-divider { height: 1px; background: var(--border); margin: 4px 0; }

        .tools-hero { text-align: center; padding: 64px 24px 48px; }
        .tools-hero h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.04em; color: #0F172A; margin-bottom: 12px; }
        .tools-hero p { font-size: 1rem; color: var(--gray); max-width: 520px; margin: 0 auto; line-height: 1.65; }

        .tools-section { max-width: 1200px; margin: 0 auto; padding: 0 24px 80px; }
        .tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
        .tool-card { background: #fff; border: 1.5px solid var(--border); border-radius: 16px; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
        .tool-card-icon { width: 44px; height: 44px; border-radius: 12px; background: #EDE9FE; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .tool-card-icon svg { width: 22px; height: 22px; stroke: var(--purple); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
        .tool-card-title { font-size: 1rem; font-weight: 700; color: #0F172A; }
        .tool-card-desc { font-size: 0.82rem; color: var(--gray); line-height: 1.6; }
        .tool-card-body { display: flex; flex-direction: column; gap: 12px; flex: 1; }
        .tool-label { font-size: 0.78rem; font-weight: 600; color: #374151; margin-bottom: 4px; }
        .tool-input { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 9px; font-size: 0.875rem; color: #111; font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s; background: #fff; }
        .tool-input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
        .tool-textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
        .tool-btn { padding: 10px 18px; border-radius: 9px; font-size: 0.875rem; font-weight: 600; cursor: pointer; border: none; background: var(--brand-gradient); color: #fff; transition: opacity .15s; display: inline-flex; align-items: center; gap: 6px; }
        .tool-btn:hover { opacity: .88; }
        .tool-btn:disabled { opacity: .5; cursor: not-allowed; }

        .pixel-bar-wrap { display: flex; flex-direction: column; gap: 8px; }
        .pixel-row { display: flex; flex-direction: column; gap: 4px; }
        .pixel-row-label { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--gray); }
        .pixel-bar-track { height: 6px; background: #E5E7EB; border-radius: 999px; overflow: hidden; }
        .pixel-bar-fill { height: 100%; border-radius: 999px; transition: width .2s, background .2s; }
        .pixel-bar-fill.ok     { background: #16A34A; }
        .pixel-bar-fill.warn   { background: #D97706; }
        .pixel-bar-fill.over   { background: #DC2626; }
        .pixel-status { font-size: 0.78rem; font-weight: 600; margin-top: 2px; }
        .pixel-status.ok   { color: #16A34A; }
        .pixel-status.warn { color: #D97706; }
        .pixel-status.over { color: #DC2626; }

        .tool-result { border-radius: 10px; padding: 14px 16px; font-size: 0.85rem; line-height: 1.6; display: none; }
        .tool-result.show { display: block; }
        .tool-result.success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #15803D; }
        .tool-result.error   { background: #FEF2F2; border: 1px solid #FECACA; color: #DC2626; }
        .tool-result.warning { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
        .tool-result.info    { background: #F5F3FF; border: 1px solid #DDD6FE; color: #5B21B6; }
        .result-title { font-weight: 700; margin-bottom: 4px; }
        .result-rule  { font-size: 0.75rem; font-family: monospace; background: rgba(0,0,0,.06); padding: 2px 6px; border-radius: 4px; margin-top: 4px; display: inline-block; }
        .limit-info   { font-size: 0.72rem; color: var(--gray); text-align: right; margin-top: 6px; }

        .tools-cms { max-width: 820px; margin: 0 auto; padding: 0 24px 80px; }
        .tools-cms-body { font-size: .94rem; line-height: 1.8; color: #374151; }
        .tools-cms-body h1,.tools-cms-body h2,.tools-cms-body h3 { color: #111; font-weight: 700; margin: 1.6em 0 .5em; letter-spacing: -.02em; }
        .tools-cms-body h1 { font-size: 1.5rem; }
        .tools-cms-body h2 { font-size: 1.2rem; }
        .tools-cms-body h3 { font-size: 1rem; }
        .tools-cms-body p  { margin: .8em 0; }
        .tools-cms-body ul,.tools-cms-body ol { padding-left: 1.6em; margin: .8em 0; }
        .tools-cms-body li { margin: .3em 0; }
        .tools-cms-body a  { color: #0284c7; text-decoration: underline; }
        .tools-cms-body strong { color: #111; font-weight: 600; }
        .tools-cms-divider { border: none; border-top: 1px solid var(--border); margin: 0 24px 48px; max-width: 1200px; margin-left: auto; margin-right: auto; }

        .footer { background: var(--dark); color: #9CA3AF; padding: 52px 48px 28px; }
        .footer-inner { max-width: 1280px; margin: 0 auto; }
        .footer-top { display: grid; grid-template-columns: 220px repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
        .footer-brand .brand-desc { font-size: 0.78rem; line-height: 1.7; color: #6B7280; margin: 12px 0 16px; }
        .footer-social { display: flex; gap: 10px; }
        .footer-social a { width: 30px; height: 30px; border-radius: 6px; border: 1px solid #2a2a2a; display: flex; align-items: center; justify-content: center; color: #6B7280; font-size: 0.8rem; transition: border-color .15s, color .15s; }
        .footer-social a:hover { border-color: #444; color: #fff; }
        .footer-col-title { font-size: 0.82rem; font-weight: 600; color: #fff; margin-bottom: 14px; }
        .footer-col ul li { margin-bottom: 9px; }
        .footer-col ul li a { font-size: 0.78rem; color: #6B7280; transition: color .15s; }
        .footer-col ul li a:hover { color: #fff; }
        .footer-bottom { border-top: 1px solid #1f1f1f; padding-top: 20px; text-align: center; font-size: 0.75rem; color: #4B5563; }

        @media (max-width: 1024px) {
            .nav { padding: 0 24px; }
            .nav-links { display: none; }
            .tools-grid { grid-template-columns: 1fr 1fr; }
            .footer-top { grid-template-columns: 1fr 1fr; }
        }
        @media (max-width: 640px) {
            .tools-hero h1 { font-size: 1.6rem; }
            .tools-grid { grid-template-columns: 1fr; }
            .footer { padding: 40px 24px 24px; }
            .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
        }
.tool-card-link { text-decoration: none; align-items: center; text-align: center; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tool-card-link:hover { border-color: var(--purple); box-shadow: 0 8px 24px rgba(124,58,237,.08); transform: translateY(-2px); }
.tool-card-link .tool-card-title { font-size: 1.05rem; }

.tool-page { max-width: 820px; margin: 0 auto; padding: 28px 24px 80px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--gray); margin-bottom: 20px; }
.breadcrumb-link { color: var(--gray); text-decoration: none; }
.breadcrumb-link:hover { color: var(--purple); text-decoration: underline; }
.breadcrumb-current { color: #0F172A; font-weight: 600; }
.breadcrumb-sep { color: #CBD5E1; }
.tool-page-h1 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; color: #0F172A; margin-bottom: 24px; }
.tool-page-widget { max-width: 640px; margin: 0 0 40px; }
.tool-page-content { font-size: .94rem; line-height: 1.8; color: #374151; }
.tool-page-content h1, .tool-page-content h2, .tool-page-content h3 { color: #111; font-weight: 700; margin: 1.6em 0 .5em; letter-spacing: -.02em; }
.tool-page-content h2 { font-size: 1.2rem; }
.tool-page-content h3 { font-size: 1rem; }
.tool-page-content p { margin: .8em 0; }
.tool-page-content ul, .tool-page-content ol { padding-left: 1.6em; margin: .8em 0; }
.tool-page-content li { margin: .3em 0; }
.tool-page-content a { color: #0284c7; text-decoration: underline; }
.tool-page-content strong { color: #111; font-weight: 600; }
.tool-widget-heading { max-width: 100%; }
.tool-page-heading { max-width: 1140px; }
.heading-tool { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 24px; align-items: start; }
.heading-input { display: flex; flex-direction: column; gap: 10px; }
.heading-textarea { min-height: 320px; font-family: 'DM Mono', ui-monospace, monospace; font-size: 0.8rem; line-height: 1.5; resize: vertical; }
.heading-output { border: 1.5px solid var(--border); border-radius: 12px; padding: 16px; min-height: 320px; background: #FAFAFA; }
.heading-summary { margin-bottom: 12px; }
.heading-summary-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.heading-count { font-size: 0.78rem; color: var(--gray); margin-right: 8px; }
.heading-status { font-size: 0.82rem; font-weight: 600; }
.heading-status.ok { color: #16A34A; }
.heading-status.has-issues { color: #D97706; }
.heading-note { font-size: 0.85rem; color: var(--gray); }
.heading-warn { font-size: 0.8rem; color: #DC2626; margin-top: 4px; }
.heading-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 6px 0; border-bottom: 1px solid #EEE; }
.heading-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 20px; border-radius: 5px; font-size: 0.7rem; font-weight: 700; color: #fff; background: var(--purple); padding: 0 5px; }
.heading-badge.h1 { background: #7C3AED; }
.heading-badge.h2 { background: #9333EA; }
.heading-badge.h3 { background: #A855F7; }
.heading-badge.h4 { background: #C084FC; }
.heading-badge.h5 { background: #D8B4FE; color: #4C1D95; }
.heading-badge.h6 { background: #EDE9FE; color: #6D28D9; }
.heading-text { font-size: 0.85rem; color: #374151; word-break: break-word; }
.heading-warn-tag { font-size: 0.72rem; color: #B45309; background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 6px; padding: 1px 6px; }
.heading-row.level-1 { padding-left: 0; }
.heading-row.level-2 { padding-left: 16px; }
.heading-row.level-3 { padding-left: 32px; }
.heading-row.level-4 { padding-left: 48px; }
.heading-row.level-5 { padding-left: 64px; }
.heading-row.level-6 { padding-left: 80px; }
@media (max-width: 768px) {
    .heading-tool { grid-template-columns: 1fr; }
}
