
    .mrc-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;
    }

    .mrc-panel {
        position: relative;                
        width: 100%;
        max-width: 1200px;
        border-radius: 28px;
        padding: clamp(28px, 5vw, 56px);
    }
    
    #bgCanvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.5; z-index: 0; }
    .mrc-content { position: relative; z-index: 1; }

    /* ---------- INPUT AREA ---------- */
    .mrc-app-container {
        background: var(--bg-body);
        border: 1px solid var(--border-color);
        border-radius: 24px;
        padding: 16px;
        transition: all 0.3s var(--ease-out);
        margin: 0 auto 30px;
        max-width: 800px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.03);
    }
    .mrc-app-container:focus-within { border-color: var(--primary-color); box-shadow: 0 12px 40px var(--primary-shadow); }
    
    .search-box-start { display: flex; gap: 12px; }
    @media (max-width: 768px) { .search-box-start { flex-direction: column; } }
    
    .search-input-wrap { flex: 1; position: relative; display: flex; align-items: center; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 14px; padding: 0 20px; transition: 0.2s; height: 56px; }
    .search-input-wrap:focus-within { border-color: var(--primary-color); background: var(--bg-body); }
    .search-input { width: 100%; height: 100%; border: none; background: transparent; padding-left: 12px; font-size: 15.5px; color: var(--text-main); font-weight: 500; font-family: 'Space Mono', monospace; outline: none; }
    .search-input::placeholder { color: var(--text-muted); opacity: 0.6; }
    .search-btn { height: 56px; padding: 0 32px; border-radius: 14px; border: none; color: #fff; background: linear-gradient(135deg, var(--primary-color), var(--primary-gradient-end)); font-size: 15px; font-weight: 800; cursor: pointer; transition: all 0.25s var(--ease-out); white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 8px; }
    .search-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 22px var(--primary-shadow); }
    .search-btn:disabled { opacity: 0.5; cursor: not-allowed; }

    /* ---------- HISTORY SECTION ---------- */
    .mrc-history-section { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 20px; padding: 24px; margin-bottom: 30px; }
    .mrc-history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
    .mrc-history-title { font-size: 15px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; margin: 0; }
    .mrc-history-list { display: flex; flex-direction: column; gap: 10px; }
    .mrc-history-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; cursor: pointer; transition: 0.2s; gap: 12px; }
    .mrc-history-item:hover { border-color: var(--primary-color); transform: translateY(-1px); }
    .mrc-history-info { display: flex; align-items: center; gap: 10px; overflow: hidden; flex: 1; }
    .mrc-history-badge { font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 6px; font-family: 'Space Mono', monospace; background: var(--primary-light); color: var(--primary-color); white-space: nowrap; }
    .mrc-history-url { font-size: 13.5px; font-weight: 700; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mrc-history-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    .mrc-history-score { font-size: 12px; font-weight: 800; padding: 2px 6px; border-radius: 4px; }
    .mrc-history-time { font-size: 12px; color: var(--text-muted); }
    .mrc-history-del { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; border-radius: 6px; transition: 0.2s; display: flex; align-items: center; }
    .mrc-history-del:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); }

    /* ---------- LOADING STATE ---------- */
    .mrc-loading { text-align: center; padding: 40px 0; }
    .mrc-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; }
    
    .mrc-thinking-log { list-style: none; margin: 0; padding: 0 10px; display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; }
    .mrc-thinking-log li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-muted); animation: slideInUp 0.4s ease forwards; }
    .mrc-thinking-log li.active { color: var(--text-main); font-weight: 700; }
    .mrc-thinking-log li.done { color: var(--text-muted); opacity: 0.6; }
    .mrc-log-dot { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
    .mrc-thinking-log li.active .mrc-log-dot { border-color: var(--primary-color); color: var(--primary-color); }
    .mrc-thinking-log li.done .mrc-log-dot { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

    /* ---------- RESULTS DASHBOARD ---------- */
    .mrc-result { animation: fadeIn 0.5s ease; }
    .mrc-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
    .mrc-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; }
    .mrc-btn-ghost:hover { border-color: var(--primary-color); color: var(--primary-color); }

    /* Stats Strip */
    .stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
    .sc { background: var(--bg-body); border-radius: 16px; padding: 20px; border: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px; }
    .sc-lbl { font-size: 13.5px; font-weight: 700; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
    .sc-val { font-size: 24px; font-weight: 900; color: var(--text-main); font-family: 'Space Mono', monospace; line-height: 1.2; }

    /* Workspace Panel */
    .ws-panel { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 20px; overflow: hidden; margin-bottom: 30px; }
    .panel-header { padding: 16px 24px; border-bottom: 1px solid var(--border-color); background: var(--bg-body); display: flex; align-items: center; justify-content: space-between; }
    .panel-title { font-size: 15px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; margin: 0; }
    
    /* Verdict Banner */
    .verdict-banner { display: flex; align-items: flex-start; gap: 20px; padding: 24px; border-radius: 0; }
    .verdict-banner.good { background: rgba(16, 185, 129, 0.05); border-bottom: 1px solid rgba(16, 185, 129, 0.1); }
    .verdict-banner.bad { background: rgba(239, 68, 68, 0.05); border-bottom: 1px solid rgba(239, 68, 68, 0.1); }
    .vb-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .good .vb-icon { background: rgba(16, 185, 129, 0.1); color: var(--success, #10b981); }
    .bad .vb-icon { background: rgba(239, 68, 68, 0.1); color: var(--danger, #ef4444); }
    .vb-content h3 { font-size: 20px; font-weight: 900; color: var(--text-main); margin-bottom: 8px; line-height: 1.2; }
    .vb-content p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; margin: 0; }
    
    /* Directives Grid */
    .directives-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding: 24px; }
    .rule-card { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; transition: 0.2s; display: flex; flex-direction: column; gap: 12px; }
    .rule-card:hover { border-color: var(--primary-color); box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
    .rc-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .rc-title { font-family: 'Space Mono', monospace; font-size: 15px; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 8px; word-break: break-all; }
    .rc-bot-badge { background: var(--primary-light); color: var(--primary-color); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 10px; border-radius: 6px; }
    .rc-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; margin: 0; }
    .rc-status { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
    
    .status-restrictive { color: var(--danger, #ef4444); }
    .status-permissive { color: var(--success, #10b981); }
    .status-control { color: #3b82f6; }
    
    /* Code Box */
    .code-box { background: #1e1e24; color: #a9b7c6; font-family: 'Space Mono', monospace; font-size: 13.5px; padding: 24px; overflow-x: auto; white-space: pre-wrap; line-height: 1.6; tab-size: 4; }
    .dark-mode .code-box { background: rgba(0,0,0,0.3); }

    /* ---------- BENTO BOX FEATURES ---------- */
    .console-features { margin-top: 40px; 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; }
    
    .feat-icon-bot::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="10" rx="2"/><circle cx="12" cy="5" r="2"/><path d="M12 7v4"/><line x1="8" y1="16" x2="8" y2="16"/><line x1="16" y1="16" x2="16" y2="16"/></svg>'); }
    .feat-icon-brain::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2a4 4 0 0 0-4 4v1a4 4 0 0 0-4 4 4 4 0 0 0 1 2.6V17a4 4 0 0 0 4 4h6a4 4 0 0 0 4-4v-3.4A4 4 0 0 0 20 11a4 4 0 0 0-4-4V6a4 4 0 0 0-4-4z"/></svg>'); }
    .feat-icon-list::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m3 17 2 2 4-4"/><path d="m3 7 2 2 4-4"/><path d="M13 6h8"/><path d="M13 12h8"/><path d="M13 18h8"/></svg>'); }
    .feat-icon-shield::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/><path d="m9 12 2 2 4-4"/></svg>'); }
    .feat-icon-eye::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>'); }
    .feat-icon-code::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>'); }

    .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; }
    }

    /* Floating Scroll-to-Top Button */
    .mrc-scroll-top-btn {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--card-bg);
        border: 1.5px solid var(--border-color);
        color: var(--text-main);
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 99999;
        outline: none;
        animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .mrc-scroll-top-btn:hover {
        background: var(--primary-color);
        color: #ffffff;
        border-color: var(--primary-color);
        transform: translateY(-4px) scale(1.08);
        box-shadow: 0 16px 32px var(--primary-shadow, rgba(239, 68, 68, 0.35));
    }
    .mrc-scroll-top-btn:active {
        transform: translateY(-1px) scale(0.96);
    }

    /* Smooth Scrolling */
    #page-content, .page-content, .mrc-wrapper, html {
        scroll-behavior: smooth;
    }

    /* Zero-Inline Enhancements */
    .search-input-wrap i { color: var(--primary-color); margin-right: 8px; }
    .mrc-history-title i { color: var(--primary-color); }
    .mrc-btn-ghost.btn-xs { padding: 4px 10px; font-size: 12px; }
    .mrc-btn-ghost.btn-xs i { width: 12px; height: 12px; }
    .mrc-history-del i { width: 14px; height: 14px; }
    .mrc-log-dot i.spinner { animation: spin 2s linear infinite; }
    .api-err { text-align: center; }
    .api-err .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 .ae-icon-wrap i { width: 30px; height: 30px; }
    .api-err h3 { font-size: 24px; font-weight: 900; text-align: center; color: var(--text-main); margin-bottom: 12px; }
    .api-err p { font-size: 15px; color: var(--text-muted); line-height: 1.6; max-width: 500px; margin: 0 auto 24px; text-align: center; }
    .sc-lbl i.text-green { color: var(--success, #10b981); }
    .sc-lbl i.text-indigo { color: #6366f1; }
    .sc-lbl i.text-blue { color: #0ea5e9; }
    .sc-lbl i.text-purple { color: #a855f7; }
    .vb-icon i { width: 28px; height: 28px; }
    .panel-title i.text-primary { color: var(--primary-color); }
    .empty-directives-box { grid-column: 1 / -1; text-align: center; padding: 30px; color: var(--text-muted); }
    .rc-title i { width: 16px; height: 16px; }
    .panel-header.bt-1 { border-top: 1px solid var(--border-color); }
    .mrc-scroll-top-btn span, .mrc-scroll-top-btn i { pointer-events: none; width: 22px; height: 22px; }