        :root {
            --bg: #ffffff;
            --text: #000000;
            --pane-bg: #f4f4f4;
            --toolbar-bg: #ecf0f1;
            --header-bg: #2c3e50;
            --header-color: white;
            --border-color: #ccc;
        }
        body.dark {
            --bg: #1e1e1e;
            --text: #f0f0f0;
            --pane-bg: #2d2d2d;
            --toolbar-bg: #3a3a3a;
            --header-bg: #111;
            --header-color: #eee;
            --border-color: #555;
        }
        * { box-sizing: border-box; }
        body {
            margin: 0;
            font-family: sans-serif;
            display: flex;
            flex-direction: column;
            height: 100vh;
            background: var(--bg);
            color: var(--text);     min-width: 1010px;
        }
        header {
            padding: 10px;
            background: var(--header-bg);
            color: var(--header-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .toolbar {
            background: var(--toolbar-bg);
            padding: 10px;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            align-items: center;     min-width: 1010px;
        }
        .toolbar select,
        .toolbar button,
        .toolbar input[type="file"] {
            padding: 6px 10px;
            font-size: 0.9rem;
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            cursor: pointer;
        }
        .editor-wrapper {
            flex: 1;
            display: flex;
            flex-direction: column;

        }
        .editors {
            display: flex;
            flex: 1;

        }
        .pane {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-width: 150px;
            background: var(--pane-bg);
            height: 600px;
        }
        .pane h3 {
            margin: 0;
            padding: 8px;
            background: var(--toolbar-bg);
            border-bottom: 1px solid var(--border-color);
            text-align: center;
        }
        textarea {
            flex: 1;
            padding: 10px;
            font-family: monospace;
            font-size: 14px;
            resize: none;
            border: none;
            outline: none;
            background: var(--bg);
            color: var(--text);
        }
        .resizer {
            width: 5px;
            background: var(--border-color);
            cursor: col-resize;
            height: 100%;
        }
        iframe {
            height: 40vh;
            border: none;
            width: 100%;
            background: white;
            height: 100vh;
        }
        .preview-pane {
            border-top: 2px solid var(--border-color);
        }

        .resizer {
            width: 2px;
            background: #aaa;
            cursor: ew-resize;
        }
/*        @media (max-width: 768px) {
            .editors { flex-direction: column; }
            .resizer { height: 5px; width: 100%; cursor: row-resize; }
            .toolbar { flex-direction: column; align-items: stretch; }
        }*/

        a.home {
            color: #fff;
            text-decoration: none;
        }

        a.home:hover {
            color: #aaa;
            text-decoration: none;
        }

        a.home:focus {
            color: #fff;
            text-decoration: none;
        }

        .legal{
            background: var(--header-bg);
            padding: 20px 15px 15px
        }

        .legal a {
            color: #fff;
            text-decoration: none;
        }

        .legal a:hover {
            color: #fff;
            opacity: 0.8;
            text-decoration: none;
        }

        .legal a:focus {
            color: #fff;
            text-decoration: none;
        }

        .cw {
            background #fff;
            color: #000;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

       .cw:hover {
            background: #0f0;
       }

       .cw:focus {
            background: #e0e0e0;
            color: #000;
            outline: none;
       }