    <style>
        /* Ogólne */
        * { box-sizing: border-box; }
        body {
            margin: 0;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            font-size: 14px;
            color: #222;
            background: #f0f2f5;
        }
        a { color: #1a4f8b; }

        .ics-page {
            max-width: 1200px;
            margin: 20px auto;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            overflow: hidden;
        }

        .ics-header {
            padding: 12px 16px;
            border-bottom: 1px solid #e0e0e0;
            background: linear-gradient(to right, #1a4f8b, #3f7fd6);
            color: #fff;
        }
        .ics-header h1 { margin: 0; font-size: 18px; }
        .ics-header small { display: block; opacity: 0.9; }

        .ics-main { display: flex; min-height: 70vh; }

        /* Lewy panel (drzewo) */
        .ics-sidebar {
            width: 40%;
            border-right: 1px solid #e0e0e0;
            padding: 10px 12px;
            background: #fafafa;
            display: flex;
            flex-direction: column;
        }

        .ics-search { margin-bottom: 8px; }
        .ics-search label {
            display: block;
            font-size: 12px;
            margin-bottom: 2px;
            color: #555;
        }
        .ics-search input {
            width: 100%;
            padding: 6px 8px;
            border-radius: 4px;
            border: 1px solid #ccc;
            font-size: 13px;
        }

        #ics-tree-container {
            flex: 1;
            margin-top: 6px;
            border: 1px solid #ddd;
            border-radius: 6px;
            padding: 8px 10px;
            background: #fff;
            max-height: calc(70vh - 40px);
            overflow: auto;
            font-size: 13px;
        }

        .ics-tree-loading { color: #777; font-style: italic; }
        .ics-tree { list-style: none; margin: 0; padding-left: 0; }

        .ics-node {
            position: relative;
            margin: 2px 0;
            padding-left: 20px;
            cursor: default;
        }

        .ics-node-label {
            display: flex;
            align-items: flex-start; /* opis może się zawijać */
            gap: 6px;
            padding: 2px 4px;
            border-radius: 4px;
        }

        .ics-node-label:hover { background: #e9f3ff; }

        .ics-node-label.active {
            background: #d4e4ff;
            outline: 1px solid #b3cffc;
        }

        .ics-toggle {
            width: 14px;
            height: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 3px;
            font-size: 10px;
            margin-left: -18px;
            margin-right: 4px;
            cursor: pointer;
            user-select: none;
            color: #555;
            background: #f0f0f0;
            border: 1px solid #d0d0d0;
            margin-top: 2px;
        }

        .ics-toggle.leaf { visibility: hidden; }

        .ics-code {
            font-weight: 700;
            color: #1a4f8b;
            white-space: nowrap;
            flex: 0 0 auto;
        }

        /* Opis obok kodu (czytelny, zawijany) */
        .ics-title {
            color: #333;
            white-space: normal;
            line-height: 1.25;
            flex: 1 1 auto;
        }
        .ics-title:empty { display: none; }

        .ics-children {
            list-style: none;
            margin: 0 0 0 12px;
            padding-left: 8px;
            border-left: 1px dotted #ccc;
        }
        .ics-children.collapsed { display: none; }

        .ics-node.level-1 > .ics-node-label .ics-code { font-size: 15px; }
        .ics-node.level-1 > .ics-node-label {
            padding-top: 4px;
            padding-bottom: 4px;
            margin-top: 6px;
            background: #f4f7fb;
        }

        .ics-node.hidden { display: none !important; }

        /* Podświetlenie w drzewie */
        .ics-highlight {
            background: #ffec99;
            padding: 0 2px;
            border-radius: 2px;
        }

        /* Prawy panel (szczegóły + surowy tekst) */
        .ics-content {
            flex: 1;
            padding: 10px 14px;
            display: flex;
            flex-direction: column;
        }

        .ics-details {
            margin-bottom: 10px;
            padding: 8px 10px;
            border-radius: 6px;
            background: #f6f9ff;
            border: 1px solid #d2def8;
        }

        .ics-details h2 {
            margin: 0 0 4px 0;
            font-size: 16px;
            color: #1a4f8b;
        }
        .ics-details-code { font-weight: 700; margin-right: 4px; }
        .ics-details-body { font-size: 13px; color: #333; }
        .ics-details-empty { font-style: italic; color: #666; }

        .ics-raw-wrapper {
            position: relative;
            flex: 1;
            border-radius: 6px;
            border: 1px solid #ddd;
            overflow: hidden;
            background: #fcfcfc;
        }

        .ics-raw-header {
            padding: 6px 8px;
            font-size: 12px;
            border-bottom: 1px solid #e0e0e0;
            background: #f5f5f5;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .ics-raw-header span { color: #555; }
        .ics-raw-toggle { font-size: 11px; cursor: pointer; color: #1a4f8b; }

        .ics-raw-content {
            height: 100%;
            max-height: calc(70vh - 80px);
            overflow: auto;
        }

        .ics-raw {
            margin: 0;
            padding: 8px 10px;
            font-family: "SF Mono", Menlo, Consolas, monospace;
            font-size: 11px;
            white-space: pre-wrap;
        }

        .ics-raw mark { background: #ffec99; padding: 0 1px; }

        /* Responsywność */
        @media (max-width: 900px) {
            .ics-main { flex-direction: column; }
            .ics-sidebar {
                width: 100%;
                border-right: none;
                border-bottom: 1px solid #e0e0e0;
            }
            #ics-tree-container { max-height: 40vh; }
            .ics-raw-content { max-height: 40vh; }
        }
    </style>