
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background: #f6f8fc;
            font-family: system-ui, -apple-system, 'Segoe UI', 'Inter', Roboto, Helvetica, sans-serif;
            color: #1a2c3c;
            line-height: 1.5;
            padding: 1rem;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
        }

        /* header */
        .site-header {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            margin-bottom: 1.8rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #e2eaf1;
        }

        .logo h1 {
            font-size: 1.5rem;
            font-weight: 600;
            color: #1e5a7a;
            letter-spacing: -0.2px;
        }

        .logo p {
            font-size: 0.85rem;
            color: #5c6f87;
            margin-top: 0.2rem;
        }

        /* tool nav - subtle */
        .tool-nav {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.5rem 1rem;
            margin-top: 0.25rem;
        }

        .tool-nav span {
            font-size: 0.7rem;
            color: #7c8ea0;
        }

        .tool-nav a {
            color: #2c6b8f;
            text-decoration: none;
            font-size: 0.8rem;
            border-bottom: 1px dotted #c8daea;
        }

        .tool-nav a:hover {
            color: #0f4b66;
        }

        /* editor area */
        .editor-grid {
            display: flex;
            flex-direction: column;
            gap: 1.2rem;
            margin-bottom: 2rem;
        }

        @media (min-width: 780px) {
            .editor-grid {
                flex-direction: row;
            }
        }

        .input-panel, .output-panel {
            flex: 1;
            background: white;
            border-radius: 1rem;
            border: 1px solid #e2eaf0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 1px 2px rgba(0,0,0,0.02);
        }

        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            padding: 0.7rem 1rem;
            background: #fefefe;
            border-bottom: 1px solid #edf2f7;
            font-size: 0.85rem;
            font-weight: 500;
            color: #2c5a7a;
        }

        .stats {
            font-size: 0.7rem;
            font-family: monospace;
            background: #eff3f8;
            padding: 0.2rem 0.6rem;
            border-radius: 30px;
            color: #3e6b8c;
        }

        textarea {
            width: 100%;
            height: 280px;
            padding: 1rem;
            font-family: 'SF Mono', 'Fira Code', monospace;
            font-size: 0.85rem;
            line-height: 1.5;
            border: none;
            background: #ffffff;
            color: #1a2a3a;
            outline: none;
            resize: vertical;
            white-space: pre;
            overflow-x: auto;
        }

        /* fix for placeholder text wrapping — prevents horizontal scroll */
        textarea::placeholder {
            white-space: normal;
            word-wrap: break-word;
            line-height: 1.4;
        }

        @media (min-width: 780px) {
            textarea {
                height: 460px;
            }
        }

        /* control cluster — grouped and intentional */
        .control-cluster {
            background: white;
            border-radius: 1rem;
            border: 1px solid #e2eaf0;
            margin: 0.5rem 0 1.2rem 0;
            overflow: hidden;
        }

        .cluster-title {
            background: #fafcfd;
            padding: 0.7rem 1rem;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #5c7f99;
            border-bottom: 1px solid #eef2f8;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .cluster-controls {
            padding: 1rem;
            display: flex;
            flex-wrap: wrap;
            gap: 1.2rem;
            align-items: center;
        }

        .control-pill {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: #f8fafc;
            padding: 0.4rem 1rem 0.4rem 0.8rem;
            border-radius: 2.5rem;
            border: 1px solid #e2e8f0;
            font-size: 0.85rem;
        }

        .control-pill label {
            cursor: pointer;
        }

        .control-pill input {
            width: 1rem;
            height: 1rem;
            accent-color: #2c6b8f;
            cursor: pointer;
        }

        .sort-group {
            display: inline-flex;
            align-items: center;
            gap: 0.6rem;
            background: #f8fafc;
            padding: 0.3rem 1rem;
            border-radius: 2.5rem;
            border: 1px solid #e2e8f0;
        }

        .sort-group span {
            font-size: 0.85rem;
        }

        select {
            background: transparent;
            border: none;
            font-size: 0.85rem;
            font-weight: 500;
            cursor: pointer;
            outline: none;
            color: #1e5a7a;
            padding: 0.2rem 0.2rem;
        }

        .action-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-top: 0.5rem;
            justify-content: flex-end;
        }

        .act-padded {
            padding: 0.7rem 1rem;
            border-top: 1px solid #eff3f8;
        }

        button {
            background: white;
            border: 1px solid #cbdde9;
            padding: 0.45rem 1.1rem;
            border-radius: 2rem;
            font-size: 0.8rem;
            font-weight: 500;
            cursor: pointer;
            transition: 0.1s;
            color: #2c5a7a;
        }

        button.primary {
            background: #1e5a7a;
            border-color: #1e5a7a;
            color: white;
        }

        button.primary:hover {
            background: #134b66;
        }

        button:hover {
            background: #eef3fc;
        }

        /* seo section — intentional, scannable */
        .insights {
            margin-top: 2.5rem;
            border-top: 1px solid #e2eaf0;
            padding-top: 2rem;
        }

        .insight-grid {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        @media (min-width: 680px) {
            .insight-grid {
                flex-direction: row;
                flex-wrap: wrap;
            }
            .insight-card {
                flex: 1;
                min-width: 240px;
            }
        }

        .insight-card {
            background: white;
            border-radius: 1rem;
            padding: 1.2rem;
            border: 1px solid #e2eaf0;
        }

        .insight-card h3 {
            font-size: 1rem;
            font-weight: 600;
            color: #1e5a7a;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .insight-card p {
            font-size: 0.85rem;
            color: #3a556b;
            line-height: 1.5;
            margin-bottom: 0.5rem;
        }

        .insight-card ul {
            margin: 0.5rem 0 0 1.2rem;
            font-size: 0.85rem;
            color: #3a556b;
        }

        .insight-card li {
            margin: 0.25rem 0;
        }

        .tool-footer {
            margin-top: 2rem;
            padding: 1rem 0;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            border-top: 1px solid #e2eaf0;
            font-size: 0.75rem;
            color: #6c869c;
        }

        .footer-links {
            display: flex;
            gap: 1.2rem;
            flex-wrap: wrap;
        }

        .footer-links a {
            color: #2c6b8f;
            text-decoration: none;
        }

        @media (max-width: 500px) {
            .cluster-controls {
                flex-direction: column;
                align-items: flex-start;
            }
            .sort-group {
                width: auto;
            }
        }