* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    :root {
        --bg: #f5f5f5;
        --bg-box: #fff;
        --text: #333;
        --border: #ddd;
        --border-light: #eee;
        --bg-header: #fafafa;
        --btn-bg: #333;
        --btn-hover: #555;
    }

    body[data-theme="dark"] {
        --bg: #1a1a1a;
        --bg-box: #2d2d2d;
        --text: #e0e0e0;
        --border: #444;
        --border-light: #3a3a3a;
        --bg-header: #252525;
        --btn-bg: #555;
        --btn-hover: #777;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        background: var(--bg);
        color: var(--text);
        line-height: 1.6;
        padding: 20px;
        transition: background 0.2s, color 0.2s;
    }

    .container {
        max-width: 900px;
        margin: 0 auto;
    }

    header {
        text-align: center;
        margin-bottom: 30px;
        padding-bottom: 20px;
        position: sticky;
        top: 0;
        background: var(--bg);
        z-index: 100;
        border-bottom: 1px solid gray;
    }

    h1 {
        font-size: 1.8rem;
        font-weight: 600;
    }

    small {
        display: block;
        margin-bottom: 10px;
        color: var(--text);
        font-size: 0.9rem;
    }

    a {
        color: lightblue;
        text-decoration: none;
    }

    a:hover {
        text-decoration: underline;
    }

    .controls {
        display: flex;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
        align-items: center;
    }

    select,
    input {
        padding: 10px 15px;
        font-size: 1rem;
        border: 1px solid var(--border);
        border-radius: 4px;
        background: var(--bg-box);
        color: var(--text);
    }

    input[type="search"] {
        width: 250px;
    }

    .theme-toggle {
        padding: 10px 15px;
        font-size: 1rem;
        border: 1px solid var(--border);
        border-radius: 4px;
        background: var(--bg-box);
        color: var(--text);
        cursor: pointer;
    }

    .section {
        display: none;
    }

    .section.active {
        display: block;
    }

    .section h2 {
        font-size: 1.3rem;
        margin: 30px 0 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--border);
    }

    .box {
        background: var(--bg-box);
        border: 1px solid var(--border);
        border-radius: 4px;
        margin-bottom: 15px;
        overflow: hidden;
    }

    .box-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        background: var(--bg-header);
        border-bottom: 1px solid var(--border-light);
    }

    .box-title {
        font-weight: 600;
        font-size: 1rem;
    }

    .box-content {
        padding: 15px;
        white-space: pre-wrap;
        font-family: monospace;
        font-size: 0.9rem;
    }

    .snippet-title {
        font-size: 1rem;
        margin: 8px 0;
    }

    .snippet-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }


    .copy-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        background: var(--btn-bg);
        color: #fff;
        border: none;
        border-radius: 3px;
        cursor: pointer;
    }

    .copy-btn:hover {
        background: var(--btn-hover);
    }

    .copy-snippet-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 96px;
        height: 32px;
        padding: 0 12px;
        font-size: 0.8rem;
        font-weight: 600;
        background: var(--btn-bg);
        color: #fff;
        border: 1px solid transparent;
        border-radius: 6px;
        cursor: pointer;
        flex-shrink: 0;
        white-space: nowrap;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
        transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    }

    .copy-snippet-btn:hover {
        background: var(--btn-hover);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
    }

    .copy-snippet-btn:active {
        transform: translateY(1px);
    }

    .copy-snippet-btn:focus-visible {
        outline: 2px solid var(--btn-hover);
        outline-offset: 2px;
    }

    .box-content pre {
        margin: 8px 0 16px;
        padding: 12px;
        border: 1px solid var(--border-light);
        border-radius: 4px;
        background: var(--bg-header);
        overflow-x: auto;
    }

    .box-content code {
        font-family: Consolas, 'Courier New', monospace;
        line-height: 1.5;
    }

    .hidden {
        display: none !important;
    }

    .dropdown-group {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .dropdown-group label {
        font-size: 0.9rem;
        color: var(--text);
    }

    .box.guide {
        border-left: 4px solid #e67e22;
    }

    .box.guide .box-header {
        background: #fff3e0;
    }

    [data-theme="dark"] .box.guide .box-header {
        background: #3d2a1a;
    }

    .box.guide .copy-btn {
        display: none;
    }

    .box.guide .box-title::before {
        content: "📌 ";
    }
    li{
        margin-left: 10%;
    }