
    .schk-wrapper {
        --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
        --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
        display: flex;
        justify-content: center;
        padding: clamp(0px, 5vw, 0px) 20px;
    }

    .schk-panel {
        position: relative;                
        width: 100%;
        max-width: 1200px;
        border-radius: 28px;
        padding: clamp(28px, 5vw, 56px);
    }

    /* Dynamic Padding State */
    .schk-wrapper.pt-0 { padding-top: 0 !important; }
    .schk-panel.pt-0 { padding-top: 0 !important; }

    /* ---------- INPUT MODES ---------- */
    .mode-tabs {
        display: flex; justify-content: center; gap: 10px; margin-bottom: 24px;
    }
    .m-tab {
        background: transparent; border: 2px solid transparent;
        padding: 8px 20px; border-radius: 100px;
        font-size: 14.5px; font-weight: 800; color: var(--text-muted);
        cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.2s;
    }
    .m-tab:hover { color: var(--text-main); }
    .m-tab.active { background: var(--primary-light); color: var(--primary-color); }

    .schk-prompt {
        display: flex; align-items: center; gap: 10px;
        background: var(--bg-body);
        border: 2px solid var(--border-color);
        border-radius: 999px;
        padding: 8px 8px 8px 22px;
        transition: all 0.3s var(--ease-out);
        max-width: 700px; margin: 0 auto;
    }
    [dir="rtl"] .schk-prompt { padding: 8px 22px 8px 8px; }
    .schk-prompt:focus-within { border-color: var(--primary-color); background: var(--card-bg); box-shadow: 0 0 0 6px var(--primary-light); }
    .schk-prompt-icon { color: var(--primary-color); flex-shrink: 0; width: 18px; height: 18px; }
    .schk-prompt-input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--text-main); font-size: 15.5px; padding: 10px 0; }
    .schk-prompt-input::placeholder { color: var(--text-muted); }

    .schk-prompt-submit {
        flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; border: none; color: #fff;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-gradient-end));
        display: flex; align-items: center; justify-content: center; cursor: pointer;
        transition: transform 0.25s var(--ease-out), filter 0.2s, box-shadow 0.25s;
    }
    .schk-prompt-submit:hover:not(:disabled) { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 22px var(--primary-shadow); filter: brightness(1.05); }
    .schk-prompt-submit:active:not(:disabled) { transform: translateY(0) scale(0.98); }
    .schk-prompt-submit:disabled { opacity: 0.45; cursor: not-allowed; }
    [dir="rtl"] .schk-prompt-submit i, [dir="rtl"] .schk-prompt-submit svg { transform: scaleX(-1); }

    .manual-mode { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
    .code-textarea {
        width: 100%; height: 180px; border-radius: 16px; border: 2px solid var(--border-color);
        background: var(--bg-body); padding: 16px; font-family: var(--font-mono, monospace);
        font-size: 14px; color: var(--text-main); outline: none; transition: all 0.3s;
        resize: vertical;
    }
    .code-textarea:focus { border-color: var(--primary-color); box-shadow: 0 0 0 4px var(--primary-light); }
    .code-textarea::placeholder { color: var(--text-muted); opacity: 0.5; }
    
    .preset-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .preset-tag { background: var(--bg-body); border: 1px dashed var(--border-color); padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: 0.2s; }
    .preset-tag:hover { background: var(--primary-light); border-color: var(--primary-color); color: var(--primary-color); }

    .manual-btn {
        align-self: flex-end; background: linear-gradient(135deg, var(--primary-color), var(--primary-gradient-end));
        color: #fff; border: none; padding: 12px 24px; border-radius: 12px; font-weight: 800; font-size: 14px;
        cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.2s;
    }
    .manual-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 20px var(--primary-shadow); }
    .manual-btn:disabled { opacity: 0.5; cursor: not-allowed; }

    /* ---------- HISTORY SECTION ---------- */
    .schk-history-section { max-width: 700px; margin: 30px auto 0; animation: fadeIn 0.4s ease; }
    .schk-history-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding: 0 10px; }
    .schk-history-title { font-size: 15px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; margin: 0; }
    .schk-clear-btn { background: transparent; border: none; font-size: 13px; font-weight: 700; color: #ef4444; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: background 0.2s; }
    .schk-clear-btn:hover { background: rgba(239, 68, 68, 0.1); }
    
    .schk-history-list { display: flex; flex-direction: column; gap: 8px; max-height: 250px; overflow-y: auto; padding-right: 4px; }
    .schk-history-list::-webkit-scrollbar { width: 4px; }
    .schk-history-list::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
    
    .schk-history-item { display: flex; align-items: center; justify-content: space-between; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 16px; transition: all 0.2s var(--ease-out); }
    .schk-history-item:hover { border-color: var(--primary-color); transform: translateX(4px); box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
    
    .schk-history-info { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
    .schk-history-domain { font-size: 14.5px; font-weight: 700; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
    .schk-history-date { font-size: 12.5px; font-weight: 600; color: var(--text-muted); white-space: nowrap; margin-right: 12px; }
    
    .schk-history-del { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 6px; border-radius: 6px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .schk-history-del:hover { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

    /* ---------- LOADING STATE ---------- */
    .schk-loading { text-align: center; padding: 40px 0; }
    .schk-orb {
        width: 80px; height: 80px; border-radius: 50%;
        background: var(--bg-body); border: 2px solid var(--primary-light);
        margin: 0 auto 24px auto; display: flex; align-items: center; justify-content: center;
        color: var(--primary-color); font-size: 32px;
        box-shadow: 0 0 0 16px var(--primary-light); transition: all 0.3s;
        animation: pulse 2s infinite ease-in-out;
    }
    @keyframes pulse {
        0% { box-shadow: 0 0 0 0 var(--primary-light); }
        70% { box-shadow: 0 0 0 20px rgba(0,0,0,0); }
        100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
    }
    .schk-orb i, .schk-orb svg { width: 32px; height: 32px; animation: spin 3s linear infinite; }
    @keyframes spin { 100% { transform: rotate(360deg); } }
    .schk-loading p { font-size: 16px; font-weight: 700; color: var(--text-main); }

    /* ---------- RESULTS STATE ---------- */
    .schk-result { margin-top: 40px; animation: fadeIn 0.5s ease; }
    .schk-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
    .schk-btn-ghost {
        background: transparent; border: 1px solid var(--border-color); border-radius: 10px;
        padding: 8px 16px; font-size: 13.5px; font-weight: 700; color: var(--text-muted);
        cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s;
    }
    .schk-btn-ghost:hover { border-color: var(--primary-color); color: var(--primary-color); }

    /* DUAL PANE LAYOUT */
    .dual-pane {
        display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px;
        height: 600px;
    }
    @media (max-width: 900px) { .dual-pane { grid-template-columns: 1fr; height: auto; } }

    .pane-box {
        background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 16px;
        display: flex; flex-direction: column; overflow: hidden;
    }
    .pane-header {
        padding: 12px 20px; border-bottom: 1px solid var(--border-color); background: var(--card-bg);
        display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--text-main);
    }
    .pane-content {
        flex: 1; overflow: auto; padding: 20px; font-family: var(--font-mono, monospace); font-size: 13px; line-height: 1.6;
    }

    /* SYNTAX HIGHLIGHTING & RAW CODE */
    .code-line { display: flex; font-family: var(--font-mono, monospace); white-space: pre; }
    .line-number { width: 40px; color: var(--text-muted); opacity: 0.5; text-align: right; padding-right: 15px; user-select: none; border-right: 1px solid var(--border-color); margin-right: 15px; }
    .code-content { color: var(--text-main); word-break: break-all; white-space: pre-wrap; }
    
    .code-content .string { color: #22c55e; }
    .code-content .number { color: #8b5cf6; }
    .code-content .bool { color: #f59e0b; }
    .code-content .null { color: #ef4444; font-style: italic; }
    .code-content .key { color: #3b82f6; font-weight: 600; }

    .error-line { background: rgba(239, 68, 68, 0.1); border-left: 3px solid #ef4444; margin-left: -3px; }
    .syntax-error-msg {
        background: var(--bg-body); border: 1px solid #ef4444; border-radius: 8px;
        padding: 12px; margin: 8px 0 16px 55px; color: var(--text-main);
        display: flex; gap: 12px; font-size: 13px; font-family: var(--font-main);
        white-space: normal; line-height: 1.5; box-shadow: 0 4px 12px rgba(239,68,68,0.1);
    }

    .schema-separator {
        color: var(--text-muted); opacity: 0.6; font-style: italic;
        padding: 10px 0; margin: 10px 0; border-top: 1px dashed var(--border-color); border-bottom: 1px dashed var(--border-color);
        text-align: center; font-size: 12px; user-select: none;
    }

    /* VISUAL NODE TREE */
    .schema-tree { margin-left: 20px; border-left: 1px solid var(--border-color); padding-left: 15px; }
    .tree-node { position: relative; margin: 4px 0; white-space: normal; }
    .tree-node::before {
        content: ''; position: absolute; left: -15px; top: 10px; width: 10px; height: 1px; background: var(--border-color);
    }
    .tree-node.root::before { display: none; }
    
    .obj-brace { color: var(--text-muted); font-weight: bold; }
    .tree-key { color: #3b82f6; font-weight: 700; }
    .tree-val.string { color: #22c55e; word-break: break-all; }
    .tree-val.number { color: #8b5cf6; font-weight: 700; }
    .tree-val.bool { color: #f59e0b; font-weight: 700; }
    
    .schema-type-badge {
        display: inline-flex; background: var(--primary-light); color: var(--primary-color);
        font-family: var(--font-main); font-size: 11px; font-weight: 800; text-transform: uppercase;
        padding: 4px 10px; border-radius: 100px; margin-bottom: 6px; border: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
    }

    /* VALIDATION BAR */
    .val-bar {
        background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 16px;
        display: flex; align-items: center; justify-content: space-between; padding: 16px 24px;
        font-family: var(--font-main); font-size: 14.5px; font-weight: 700; color: var(--text-main);
        transition: all 0.3s;
    }
    .val-bar.valid { background: rgba(34, 197, 94, 0.05); border-color: #22c55e; color: #22c55e; }
    .val-bar.invalid { background: rgba(239, 68, 68, 0.05); border-color: #ef4444; color: #ef4444; }
    .val-status { display: flex; align-items: center; gap: 8px; }
    .val-meta { display: flex; align-items: center; gap: 24px; font-size: 13.5px; opacity: 0.8; }
    
    .api-err { text-align: center; padding: 40px 20px; }
    .ae-icon-wrap { width: 64px; height: 64px; border-radius: 16px; background: rgba(239, 68, 68, 0.1); color: #ef4444; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
    .api-err h3 { font-size: 24px; font-weight: 900; color: var(--text-main); margin-bottom: 12px; }
    .ae-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #ef4444; background: rgba(239, 68, 68, 0.1); padding: 6px 12px; border-radius: 100px; margin-bottom: 16px; }
    .ae-message { font-size: 15px; color: var(--text-muted); line-height: 1.6; max-width: 500px; margin: 0 auto 24px; }
    .ae-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-main); background: var(--bg-body); padding: 12px 20px; border-radius: 12px; border: 1px solid var(--border-color); }

    /* ---------- BENTO BOX FEATURES ---------- */
    .console-features { margin-top: 50px; width: 100%; }
    .bento-features-cluster { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(130px, auto); gap: 20px; width: 100%; position: relative; z-index: 2; }
    .bento-card { background: rgba(255, 255, 255, 0.015); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border-color); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; position: relative; overflow: hidden; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
    
    .bento-card::before {
        content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
        width: 150px; height: 150px; background-size: contain; background-repeat: no-repeat; background-position: center;
        opacity: 0.03; transition: all 0.5s ease; pointer-events: none; z-index: 0;
    }
    .bento-card:hover::before { opacity: 0.08; transform: translate(-50%, -50%) scale(1.1); }
    .dark-mode .bento-card::before { filter: invert(1); opacity: 0.05; }
    
    .bento-card::after { content: ''; position: absolute; inset: 0; border-radius: 24px; background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%); pointer-events: none; }
    .bento-card:hover { transform: translateY(-4px) scale(1.01); border-color: var(--primary-color); box-shadow: 0 12px 30px rgba(0,0,0,0.06); }
    .bento-card-content { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; gap: 12px; }
    
    .dashed-ring-wrapper { position: relative; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; width: 44px; height: 44px; }
    .dashed-ring-wrapper::after { content: ''; position: absolute; top: -5px; left: -5px; right: -5px; bottom: -5px; border: 1px dashed var(--border-color); border-radius: 16px; opacity: 0.5; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); z-index: 0; transform-origin: center center; }
    .bento-card:hover .dashed-ring-wrapper::after { opacity: 1; transform: scale(1.1) rotate(180deg); border-color: var(--primary-color); }
    .bc-icon-wrapper { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-body); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 0.4s ease; margin-bottom: 0; position: relative; z-index: 1; }
    .bento-card:hover .bc-icon-wrapper { background: linear-gradient(135deg, var(--primary-color), var(--border-color)); color: white; border-color: transparent; transform: scale(1.1) rotate(4deg); }
    .bc-title { font-size: 16px; font-weight: 800; color: var(--text-main); margin: 0; }
    .bc-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin: 0; font-weight: 500; }
    
    @media (max-width: 900px) {
        .bento-features-cluster { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 600px) {
        .bento-features-cluster { grid-template-columns: 1fr; }
    }

    /* Smooth Scrolling */
    #page-content, .page-content, .schk-wrapper, html {
        scroll-behavior: smooth;
    }

    #bgCanvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.5; z-index: 0; }
    .schk-content { position: relative; z-index: 1; }

    /* Zero-Inline Enhancements */
    .schk-hero-badge i { width: 14px; height: 14px; }
    .m-tab i { width: 16px; height: 16px; }
    .schk-prompt-submit i { width: 20px; height: 20px; }
    .preset-label { font-size: 12px; font-weight: 800; color: var(--text-muted); margin-right: 4px; }
    .manual-btn i { width: 16px; height: 16px; }
    .schk-btn-ghost i { width: 16px; height: 16px; }
    .ae-icon-wrap i { width: 30px; height: 30px; }
    .ae-status i { width: 13px; height: 13px; }
    .ae-hint i { width: 16px; height: 16px; flex-shrink: 0; }
    .pane-header i { width: 16px; height: 16px; }
    .val-status i { width: 18px; height: 18px; }
    .val-meta span i { width: 14px; height: 14px; display: inline-block; vertical-align: middle; }
    .schk-history-title i { width: 18px; height: 18px; }
    .schk-history-domain i { width: 14px; height: 14px; color: var(--primary-color); }
    .schk-history-del i { width: 16px; height: 16px; }

