        :root {
            --bg: #ffffff;
            --surface: #faf8f5;
            --surface2: #f3efe8;
            --border: #e8e0d4;
            --text: #2c2518;
            --text2: #8a7e6b;
            --text3: #b5a992;
            --accent1: #c4a35a;
            --accent2: #d4b96a;
            --grad: linear-gradient(135deg, #c4a35a, #d4b96a);
            --green: #6b9a4e;
            --red: #c45a5a;
            --orange: #d4915a;
            --r: 12px;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            background: var(--bg);
            color: var(--text);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
        }

        /* ===== Main ===== */
        .main {
            max-width: 1200px;
            margin: 0 auto;
            padding: 24px;
        }
        @media (min-width: 768px) { .main { padding: 40px; } }

        /* ===== Header ===== */
        .header {
            text-align: center;
            margin-bottom: 40px;
        }
        .header h1 {
            font-size: 32px;
            font-weight: 800;
            letter-spacing: -0.5px;
            background: var(--grad);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.2;
        }
        .header-link {
            display: inline-block;
            margin-top: 10px;
            font-size: 13px;
            font-weight: 500;
            color: var(--accent1);
            text-decoration: none;
            letter-spacing: 0.3px;
            transition: opacity 0.2s;
        }
        .header-link:hover { opacity: 0.7; }
        .header-links {
            margin-top: 10px;
            display: flex;
            gap: 16px;
            justify-content: center;
            align-items: center;
        }
        .header-toggles {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 12px;
            margin-top: 8px;
            flex-wrap: wrap;
        }
        .toggle-switch {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 12px;
            background: var(--surface);
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .toggle-switch:hover { background: var(--surface2); }
        .toggle-switch.disabled { opacity: 0.5; cursor: not-allowed; }
        .toggle-switch .label { font-size: 12px; font-weight: 500; color: var(--text2); }
        .toggle-switch .switch {
            width: 36px;
            height: 20px;
            background: var(--border);
            border-radius: 10px;
            position: relative;
            transition: background 0.2s;
        }
        .toggle-switch.active .switch { background: var(--accent1); }
        .toggle-switch .switch::after {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            background: white;
            border-radius: 50%;
            top: 2px;
            left: 2px;
            transition: transform 0.2s;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .toggle-switch.active .switch::after { transform: translateX(16px); }
        
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            backdrop-filter: blur(4px);
        }
        .modal-content {
            background: var(--bg);
            border-radius: var(--r);
            width: 90%;
            max-width: 480px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
            animation: modalIn 0.2s ease-out;
        }
        @keyframes modalIn {
            from { opacity: 0; transform: scale(0.95) translateY(20px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }
        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 24px;
            border-bottom: 1px solid var(--border);
        }
        .modal-header h3 {
            font-size: 18px;
            font-weight: 700;
            color: var(--text);
        }
        .modal-close {
            background: none;
            border: none;
            color: var(--text3);
            cursor: pointer;
            padding: 6px;
            border-radius: 8px;
            transition: all 0.2s;
        }
        .modal-close:hover {
            color: var(--text);
            background: var(--surface);
        }
        .modal-body {
            padding: 24px;
        }
        .warning-box {
            display: flex;
            gap: 16px;
            padding: 16px;
            background: rgba(212, 145, 90, 0.08);
            border-radius: var(--r);
            border-left: 4px solid var(--orange);
        }
        .warning-text {
            flex: 1;
            font-size: 14px;
            color: var(--text2);
        }
        .warning-text p {
            margin-bottom: 8px;
        }
        .warning-text ul {
            list-style: none;
            padding-left: 0;
            margin: 0;
        }
        .warning-text li {
            position: relative;
            padding-left: 20px;
            margin-bottom: 6px;
            line-height: 1.5;
        }
        .warning-text li::before {
            content: '•';
            position: absolute;
            left: 0;
            color: var(--orange);
            font-weight: bold;
        }
        .modal-footer {
            display: flex;
            gap: 12px;
            padding: 16px 24px;
            border-top: 1px solid var(--border);
            background: var(--surface);
        }
        .modal-btn {
            flex: 1;
            padding: 12px;
            border: none;
            border-radius: var(--r);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .modal-btn-cancel {
            background: var(--surface2);
            color: var(--text2);
        }
        .modal-btn-cancel:hover {
            background: var(--border);
        }
        .modal-btn-confirm {
            background: var(--grad);
            color: white;
        }
        .modal-btn-confirm:hover {
            transform: scale(1.02);
            box-shadow: 0 4px 16px rgba(196, 163, 90, 0.4);
        }
        
        .header-links .header-link + .header-link::before {
            content: '';
            display: none;
        }

        /* ===== API Doc ===== */
        .api-doc {
            display: none;
            max-width: 720px;
            margin: 0 auto 40px;
        }
        .api-doc.active { display: block; }
        .lib-tool {
            display: none;
            max-width: 720px;
            margin: 0 auto 40px;
        }
        .lib-tool.active { display: block; }
        .api-section { margin-bottom: 32px; }
        .api-section h3 {
            font-size: 14px;
            font-weight: 700;
            color: var(--text2);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 12px;
        }
        .api-code {
            font-family: "SF Mono", Monaco, monospace;
            font-size: 14px;
            font-weight: 600;
            color: var(--accent1);
            background: var(--surface);
            display: inline-block;
            padding: 8px 16px;
            border-radius: 8px;
        }
        .api-desc {
            font-size: 13px;
            color: var(--text3);
            margin-top: 6px;
        }
        .api-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }
        .api-table th {
            text-align: left;
            padding: 8px 12px;
            font-weight: 600;
            color: var(--text2);
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 1px solid var(--border);
        }
        .api-table td {
            padding: 10px 12px;
            border-bottom: 1px solid var(--surface2);
            color: var(--text);
        }
        .api-table .mono {
            font-family: "SF Mono", Monaco, monospace;
            font-weight: 600;
            color: var(--accent1);
            font-size: 12px;
        }
        .api-table .req {
            color: var(--red);
            font-weight: 600;
        }
        .code-tabs {
            position: relative;
            display: flex;
            gap: 4px;
            margin-bottom: 12px;
        }
        .tab-indicator {
            position: absolute;
            top: 0;
            height: 100%;
            border-radius: 8px;
            background: var(--surface);
            pointer-events: none;
            z-index: 0;
            /* 左缘与宽度用带回弹的缓动：先拉长、再收拢 */
            transition: left 0.32s cubic-bezier(0.34, 1.3, 0.64, 1),
                        width 0.32s cubic-bezier(0.34, 1.3, 0.64, 1);
        }
        .tab-btn {
            position: relative;
            z-index: 1;
            padding: 6px 14px;
            background: transparent;
            border: none;
            border-radius: 8px;
            color: var(--text3);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: color 0.2s, background 0.2s;
        }
        .tab-btn:hover:not(.active) { color: var(--text); background: var(--surface); }
        .tab-btn.active { color: var(--accent1); }
        .tab-panel { display: none; }
        .tab-panel.active { display: block; }
        @media (prefers-reduced-motion: reduce) {
            .tab-indicator { transition: none; }
        }
        .api-example {
            background: var(--surface);
            border-radius: var(--r);
            padding: 20px;
            font-family: "SF Mono", "Fira Code", Monaco, Consolas, monospace;
            font-size: 12.5px;
            line-height: 1.7;
            color: #5a5245;
            white-space: pre;
            overflow-x: auto;
            margin: 0;
        }

        /* ===== Markdown 渲染 ===== */
        .markdown-body {
            font-size: 14px;
            color: var(--text);
            line-height: 1.7;
        }
        .markdown-body h1 {
            font-size: 26px;
            font-weight: 800;
            margin: 0 0 16px;
            letter-spacing: -0.5px;
        }
        .markdown-body h2 {
            font-size: 18px;
            font-weight: 700;
            margin: 32px 0 12px;
            padding-top: 8px;
            border-top: 1px solid var(--border);
        }
        .markdown-body h3 {
            font-size: 15px;
            font-weight: 700;
            margin: 24px 0 10px;
        }
        .markdown-body h4 {
            font-size: 14px;
            font-weight: 700;
            margin: 20px 0 8px;
            color: var(--text2);
        }
        .markdown-body p {
            margin: 0 0 12px;
            color: var(--text3);
        }
        .markdown-body a {
            color: var(--accent1);
            text-decoration: none;
        }
        .markdown-body a:hover { text-decoration: underline; }
        .markdown-body ul, .markdown-body ol {
            margin: 0 0 12px 20px;
            color: var(--text3);
        }
        .markdown-body li { margin-bottom: 4px; }
        .markdown-body code {
            font-family: "SF Mono", Monaco, monospace;
            font-size: 12px;
            color: var(--accent1);
            background: var(--surface);
            padding: 2px 6px;
            border-radius: 4px;
        }
        .markdown-body pre {
            background: var(--surface);
            border-radius: var(--r);
            padding: 20px;
            margin: 0 0 16px;
            overflow-x: auto;
        }
        .markdown-body pre code {
            font-family: "SF Mono", "Fira Code", Monaco, Consolas, monospace;
            font-size: 12.5px;
            line-height: 1.7;
            color: #5a5245;
            background: transparent;
            padding: 0;
            border-radius: 0;
            white-space: pre;
        }
        .markdown-body table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
            margin: 0 0 16px;
        }
        .markdown-body th {
            text-align: left;
            padding: 8px 12px;
            font-weight: 600;
            color: var(--text2);
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 1px solid var(--border);
        }
        .markdown-body td {
            padding: 10px 12px;
            border-bottom: 1px solid var(--surface2);
            color: var(--text);
        }
        .markdown-body blockquote {
            margin: 0 0 16px;
            padding: 8px 16px;
            border-left: 3px solid var(--accent1);
            background: var(--surface);
            border-radius: 0 var(--r) var(--r) 0;
            color: var(--text3);
            font-size: 13px;
        }
        .markdown-body hr {
            border: none;
            border-top: 1px solid var(--border);
            margin: 24px 0;
        }

        /* ===== Docs 布局 ===== */
        .docs-layout {
            display: flex;
            gap: 32px;
            align-items: flex-start;
            margin-top: 8px;
        }
        .docs-sidebar {
            width: 220px;
            flex-shrink: 0;
            position: sticky;
            top: 24px;
            max-height: calc(100vh - 48px);
            overflow-y: auto;
            padding-right: 8px;
        }
        .docs-group { margin-bottom: 18px; }
        .docs-group-title {
            font-size: 11px;
            font-weight: 700;
            color: var(--text3);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 6px;
            padding-left: 10px;
        }
        .docs-side-item {
            display: block;
            padding: 6px 10px;
            font-size: 13px;
            color: var(--text2);
            text-decoration: none;
            border-radius: 6px;
            margin-bottom: 2px;
            transition: all 0.15s;
        }
        .docs-side-item:hover { background: var(--surface); color: var(--text); }
        .docs-side-item.active { background: var(--surface); color: var(--accent1); font-weight: 600; }
        .docs-content {
            flex: 1;
            min-width: 0;
            max-width: 760px;
        }
        .docs-nav {
            display: flex;
            justify-content: space-between;
            gap: 16px;
            margin-top: 48px;
            border-top: 1px solid var(--border);
            padding-top: 24px;
        }
        .docs-nav-card {
            display: flex;
            flex-direction: column;
            gap: 4px;
            padding: 16px 20px;
            border: 1px solid var(--border);
            border-radius: var(--r);
            text-decoration: none;
            background: var(--surface);
            min-width: 160px;
            transition: all 0.2s;
        }
        .docs-nav-card:hover { border-color: var(--accent1); }
        .docs-nav-next { text-align: right; margin-left: auto; }
        .docs-nav-dir { font-size: 11px; color: var(--text3); }
        .docs-nav-title { font-size: 14px; font-weight: 600; color: var(--accent1); }

        /* ===== 在线调试 ===== */
        .debug-box {
            margin-top: 36px;
            border: 1px solid var(--border);
            border-radius: var(--r);
            padding: 20px;
            background: var(--bg);
        }
        .debug-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
        .debug-form { display: flex; flex-direction: column; gap: 12px; }
        .debug-field { display: flex; flex-direction: column; gap: 6px; }
        .debug-field label { font-size: 12px; color: var(--text2); font-weight: 500; }
        .debug-field label b { color: var(--red); }
        .debug-field input[type="text"], .debug-field select {
            padding: 8px 12px;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 13px;
            color: var(--text);
            background: var(--bg);
        }
        .debug-field input[type="text"]:focus, .debug-field select:focus {
            border-color: var(--accent1);
            outline: none;
        }
        .debug-field input[type="file"] { font-size: 12px; color: var(--text3); }
        .debug-send {
            align-self: flex-start;
            padding: 10px 20px;
            background: var(--grad);
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .debug-send:hover { opacity: 0.9; transform: translateY(-1px); }
        .debug-send:active { transform: none; }
        .debug-result {
            margin-top: 16px;
            background: var(--surface);
            border-radius: var(--r);
            padding: 16px;
            max-height: 420px;
            overflow: auto;
        }
        .debug-result pre {
            font-family: "SF Mono", Monaco, monospace;
            font-size: 12px;
            line-height: 1.6;
            color: #5a5245;
            white-space: pre-wrap;
            word-break: break-all;
            margin: 0;
        }
        .debug-result p { color: var(--text3); font-size: 13px; margin: 0; }
        .debug-err { color: var(--red); font-size: 13px; }
        .debug-link { color: var(--accent1); font-weight: 600; }

        .docs-menu-btn {
            display: none;
        }
        .docs-backdrop {
            display: none;
        }

        @media (max-width: 900px) {
            .docs-layout { flex-direction: column; }
            .docs-menu-btn {
                position: sticky;
                top: 12px;
                z-index: 60;
                display: inline-flex;
                align-items: center;
                gap: 6px;
                align-self: flex-start;
                padding: 8px 14px;
                background: var(--surface);
                border: 1px solid var(--border);
                border-radius: 8px;
                font-size: 13px;
                font-weight: 600;
                color: var(--text);
                cursor: pointer;
                margin-bottom: 16px;
            }
            .docs-sidebar {
                position: fixed;
                top: 0;
                left: 0;
                bottom: 0;
                width: 270px;
                max-height: none;
                background: var(--bg);
                z-index: 100;
                padding: 24px 20px;
                overflow-y: auto;
                transform: translateX(-100%);
                transition: transform 0.25s ease;
                box-shadow: 0 0 40px rgba(0, 0, 0, 0.12);
            }
            .docs-sidebar.open { transform: translateX(0); }
            .docs-backdrop {
                display: block;
                position: fixed;
                inset: 0;
                background: rgba(0, 0, 0, 0.35);
                z-index: 99;
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.25s ease;
            }
            .docs-backdrop.show { opacity: 1; pointer-events: auto; }
        }

        /* 手机端长行自动换行，避免横向滚动 */
        @media (max-width: 900px) {
            .markdown-body pre,
            .markdown-body pre code {
                white-space: pre-wrap;
                overflow-wrap: anywhere;
                word-break: break-word;
            }
            .markdown-body code {
                overflow-wrap: anywhere;
                word-break: break-word;
            }
            .markdown-body td,
            .markdown-body th {
                word-break: break-word;
            }
        }

        /* ===== Form ===== */
        .form-wrap {
            max-width: 480px;
            margin: 0 auto;
        }
        .field { margin-bottom: 24px; }
        .field label {
            display: block;
            font-size: 11px;
            font-weight: 300;
            color: var(--text2);
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 1.2px;
        }
        .field input[type="text"],
        .field select {
            width: 100%;
            padding: 10px 2px;
            background: transparent;
            border: none;
            border-bottom: 1px solid var(--border);
            border-radius: 0;
            color: var(--text);
            font-size: 14px;
            outline: none;
            transition: border-image 0.3s;
        }
        .field input[type="text"]:focus,
        .field select:focus {
            border-bottom: 2px solid transparent;
            border-image: var(--grad) 1;
        }
        .field input[type="text"]::placeholder { color: var(--text3); font-weight: 300; }
        .field select { appearance: none; color: var(--text); }
        .field-hint {
            margin-top: 8px;
            font-size: 12px;
            line-height: 1.5;
            color: var(--text3);
        }
        .field-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
        }
        .file-zone {
            position: relative;
            border: 1.5px dashed transparent;
            border-radius: var(--r);
            padding: 16px 24px;
            text-align: center;
            cursor: pointer;
            transition: all 0.25s ease;
            margin-bottom: 32px;
            background-origin: border-box;
            background-clip: padding-box, border-box;
            background-image: linear-gradient(var(--surface), var(--surface)), var(--grad);
        }
        .file-zone:hover, .file-zone.dragover {
            transform: translateY(-2px);
            background-image: linear-gradient(var(--surface2), var(--surface2)), var(--grad);
        }
        .file-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
        .file-zone .icon { margin-bottom: 0; display: inline; vertical-align: middle; }
        .file-zone .icon svg { stroke: var(--text2); transition: stroke 0.2s; vertical-align: middle; }
        .file-zone:hover .icon svg { stroke: var(--accent1); }
        .file-zone .label { font-size: 13px; color: var(--text2); font-weight: 400; display: inline; vertical-align: middle; margin-left: 8px; }
        .file-zone .filename { font-size: 13px; color: var(--accent1); margin-top: 8px; font-weight: 600; word-break: break-all; }
        .upload-progress {
            display: none;
            margin: -14px 0 18px;
            padding: 12px 14px;
            background: var(--surface);
            border-radius: var(--r);
        }
        .upload-progress.show { display: block; }
        .upload-progress-bar {
            width: 100%;
            height: 6px;
            border-radius: 999px;
            background: var(--surface2);
            overflow: hidden;
        }
        .upload-progress-fill {
            width: 0%;
            height: 100%;
            background: var(--grad);
            transition: width 0.15s ease;
        }
        .upload-progress-text {
            margin-top: 8px;
            font-size: 12px;
            color: var(--text2);
        }
        .submit-btn {
            width: 100%;
            padding: 14px;
            background: var(--grad);
            color: #ffffff;
            border: none;
            border-radius: var(--r);
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            letter-spacing: 0.5px;
        }
        .submit-btn:hover { transform: scale(1.02); box-shadow: 0 8px 32px rgba(196, 163, 90, 0.3); }
        .submit-btn:active { transform: scale(0.97); box-shadow: none; }
        .submit-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
        .error-msg {
            margin-top: 16px;
            padding: 12px 16px;
            background: rgba(196, 90, 90, 0.08);
            border-radius: var(--r);
            color: var(--red);
            font-size: 13px;
            display: none;
        }
        .error-msg.show { display: block; }
        .tool-result {
            margin-top: 24px;
        }
        .tool-result-list {
            display: grid;
            gap: 16px;
        }
        .tool-result-card {
            background: var(--surface);
            border-radius: var(--r);
            padding: 18px 20px;
        }
        .tool-result-card pre {
            white-space: pre-wrap;
            overflow-wrap: anywhere;
            word-break: break-word;
        }
        .tool-result-path {
            font-size: 13px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 14px;
            word-break: break-all;
            font-family: "SF Mono", Monaco, monospace;
        }
        .tool-result-grid {
            display: grid;
            gap: 12px;
        }
        .tool-result-item {
            background: var(--bg);
            border-radius: 10px;
            padding: 12px 14px;
        }
        .tool-result-label {
            font-size: 11px;
            color: var(--text3);
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin-bottom: 8px;
        }
        .tool-result-value {
            font-size: 13px;
            color: var(--text);
            line-height: 1.6;
            word-break: break-all;
            font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
        }

        /* ===== Result ===== */
        .result-wrap { display: none; }
        .result-wrap.active { display: block; }
        .form-wrap.hidden { display: none; }

        .top-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
            margin-bottom: 24px;
        }
        .top-bar h2 {
            font-size: 20px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .top-bar h2 .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--green);
            box-shadow: 0 0 12px rgba(107, 154, 78, 0.3);
        }
        .top-bar h2 .dot.fail { background: var(--red); box-shadow: 0 0 12px rgba(196, 90, 90, 0.3); }
        .top-actions { display: flex; gap: 8px; align-items: center; }
        .pill { padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; }
        .pill-ok { background: rgba(107, 154, 78, 0.1); color: var(--green); }
        .pill-fail { background: rgba(196, 90, 90, 0.1); color: var(--red); }

        .hint-bar {
            text-align: center;
            font-size: 12px;
            color: var(--text3);
            font-weight: 400;
            letter-spacing: 0.3px;
            margin-bottom: 24px;
        }

        .info-bar {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            margin-bottom: 24px;
        }
        .info-chip {
            background: var(--surface);
            border-radius: var(--r);
            padding: 16px 24px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .info-chip .num { font-size: 24px; font-weight: 800; }
        .info-chip .num.green { color: var(--green); }
        .info-chip .num.orange { color: var(--orange); }
        .info-chip .num.red { color: var(--red); }
        .info-chip .num.accent { color: var(--accent1); }
        .info-chip .desc { font-size: 12px; color: var(--text3); line-height: 1.4; font-weight: 400; }

        .strategy-panel {
            background: var(--surface);
            border-radius: var(--r);
            padding: 18px 20px;
            margin-bottom: 24px;
        }
        .strategy-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--text2);
            margin-bottom: 14px;
            text-transform: uppercase;
            letter-spacing: 0.8px;
        }
        .strategy-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }
        @media (min-width: 900px) { .strategy-grid { grid-template-columns: 1fr 1fr; } }
        .strategy-item {
            background: var(--bg);
            border-radius: 10px;
            padding: 12px 14px;
        }
        .strategy-item.wide {
            grid-column: 1 / -1;
        }
        .strategy-label {
            font-size: 11px;
            color: var(--text3);
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin-bottom: 8px;
        }
        .strategy-value {
            font-size: 13px;
            color: var(--text);
            word-break: break-all;
            line-height: 1.6;
            font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
        }
        .strategy-copy {
            margin-top: 10px;
        }

        .cards {
            display: grid;
            grid-template-columns: 1fr;
            gap: 16px;
        }
        @media (min-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }

        .card {
            background: var(--surface);
            border-radius: var(--r);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: all 0.2s;
        }
        .card:hover { background: var(--surface2); }
        .card-head {
            padding: 14px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        .card-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
        .card-name .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
        .card-name .dot.entry { background: var(--orange); box-shadow: 0 0 8px rgba(212, 145, 90, 0.2); }
        .card-name .dot.normal { background: var(--accent1); box-shadow: 0 0 8px rgba(196, 163, 90, 0.15); }
        .card-name span {
            font-size: 13px;
            font-weight: 600;
            font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
            color: var(--text);
            white-space: normal;
            overflow-wrap: anywhere;
            word-break: break-word;
        }
        .badge {
            background: rgba(212, 145, 90, 0.1);
            color: var(--orange);
            padding: 3px 10px;
            border-radius: 6px;
            font-size: 10px;
            font-weight: 700;
            flex-shrink: 0;
            text-transform: uppercase;
            letter-spacing: 0.8px;
        }
        .copy-btn {
            padding: 6px 14px;
            background: transparent;
            border: none;
            border-radius: 8px;
            color: var(--text3);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 500;
        }
        .copy-btn:hover { color: var(--accent1); background: rgba(196, 163, 90, 0.08); }
        .copy-btn.copied { color: var(--green); background: rgba(107, 154, 78, 0.08); }

        .card-body { flex: 1; position: relative; }
        .code-wrap { overflow: auto; max-height: 55vh; }
        @media (min-width: 900px) { .code-wrap { max-height: 440px; } }
        .code-block {
            margin: 0;
            padding: 20px;
            color: #5a5245;
            font-family: "SF Mono", "Fira Code", Monaco, Consolas, monospace;
            font-size: 12.5px;
            line-height: 1.7;
            white-space: pre-wrap;
            overflow-wrap: anywhere;
            word-break: break-word;
            tab-size: 4;
        }

        .failed-section {
            margin-top: 24px;
            background: var(--surface);
            border-radius: var(--r);
            overflow: hidden;
        }
        .failed-section .head {
            padding: 14px 24px;
            background: rgba(196, 90, 90, 0.04);
            font-size: 13px;
            font-weight: 700;
            color: var(--red);
        }
        .failed-section ul { list-style: none; }
        .failed-section li { padding: 12px 24px; display: flex; gap: 16px; font-size: 13px; }
        .failed-section .fname { color: var(--text); font-family: "SF Mono", Monaco, monospace; font-weight: 600; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
        .failed-section .err { color: var(--text3); word-break: break-all; }

        .toast {
            position: fixed;
            top: 24px;
            left: 50%;
            transform: translateX(-50%) translateY(-60px);
            background: var(--surface2);
            color: var(--text);
            padding: 12px 28px;
            border-radius: var(--r);
            font-size: 13px;
            font-weight: 500;
            box-shadow: 0 12px 40px rgba(0,0,0,0.1);
            opacity: 0;
            transition: all 0.3s;
            z-index: 1000;
            pointer-events: none;
        }
        .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

        ::-webkit-scrollbar { width: 4px; height: 4px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: #d4cfc5; border-radius: 2px; }