
    :root { --gemini-blue: #4285f4; --gemini-purple: #9b72cb; --gemini-red: #d96570; }
    
    .nc-main-wrapper { 
        font-family: 'Pretendard', sans-serif; 
        width: 100vw !important; 
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        overflow: visible; 
        background: transparent !important; 
        margin-top: 0 !important; 
        padding: 0 !important; 
    }

    .nc-ai-search-container { 
        width: 100%; 
        margin: 0; 
        padding: 0; 
        background: transparent !important; 
        backdrop-filter: none; 
        -webkit-backdrop-filter: none;
        position: relative; 
        display: flex;
        justify-content: center;
        align-items: flex-start;
        border: none;
        box-shadow: none;
        min-height: auto;
    }
    
    .nc-ai-search-container::before {
        content: none;
    }
    @keyframes rotateGemini { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

    .nc-ai-inner { position: relative; z-index: 2; text-align: center; width: 100%; max-width: 1100px; padding: 0 40px; margin-top: 0; }
    
    .nc-gemini-logo { 
        display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px;
        background: linear-gradient(90deg, #4285f4, #9b72cb); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        margin-bottom: 10px; letter-spacing: 0;
        min-height: 22px;
    }

    .nc-ai-inner h2 { 
        font-size: clamp(28px, 5.2vw, 46px); 
        font-weight: 800; 
        line-height: 1.25; 
        margin-top: 2px;    
        margin-bottom: 20px; 
        color: #111; 
        letter-spacing: 0; 
        word-break: keep-all;
    }

    .nc-search-line {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        gap: 0;
        width: min(700px, 100%);
        margin: 0 auto;
    }

    .nc-search-form {
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
    }

    .nc-search-action-group {
        flex: 0 0 auto;
        position: absolute;
        left: calc(100% + 18px);
        top: calc(50% + 5px);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        transform: translateY(-50%);
        z-index: 1;
    }

    .nc-search-bar { 
        display: flex; background: rgba(255,255,255,0.96); box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
        border: 1px solid rgba(66, 133, 244, 0.18); border-radius: 30px; padding: 10px 10px 10px 35px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        max-width: 700px; 
        width: 100%;
        margin: 0;
        position: relative;
        z-index: 2;
    }

    .nc-search-relay-link {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
        height: 68px;
        width: 54px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        text-decoration: none;
        filter: drop-shadow(0 10px 16px rgba(15, 23, 42, 0.18));
        transform: translateY(1px);
        transition: transform 0.24s ease, filter 0.24s ease;
    }

    .nc-search-relay-link:hover,
    .nc-search-relay-link:focus-visible {
        transform: translateY(-2px);
        filter: drop-shadow(0 15px 22px rgba(15, 23, 42, 0.24));
    }

    .nc-search-relay-link img {
        display: block;
        height: 100%;
        width: auto;
        object-fit: contain;
    }

    .nc-search-relay-badge {
        position: absolute;
        left: 7px;
        top: -24px;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 46px;
        height: 19px;
        padding: 0 7px;
        border-radius: 999px 999px 999px 7px;
        background: #d71920;
        color: #fff;
        font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
        font-size: 10px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: 0;
        white-space: nowrap;
        text-shadow: 0 1px 2px rgba(80, 0, 0, 0.35);
        box-shadow:
            0 5px 11px rgba(215, 25, 32, 0.32),
            inset 0 1px 0 rgba(255, 255, 255, 0.24);
        transform: rotate(-7deg);
        transform-origin: left center;
        pointer-events: none;
    }

    .nc-search-relay-badge::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -4px;
        width: 8px;
        height: 8px;
        background: #d71920;
        clip-path: polygon(0 0, 100% 0, 16% 100%);
        transform: translateX(-50%) rotate(9deg);
    }

    .nc-search-webzine-link img {
        height: 100%;
        width: 100%;
        object-fit: contain;
    }

    .nc-search-webzine-badge {
        left: -1px;
        top: -32px;
        min-width: 78px;
        height: 28px;
        padding: 2px 8px 3px;
        flex-direction: column;
        gap: 1px;
        font-size: 8.6px;
        line-height: 1;
        transform: rotate(-6deg);
    }

    .nc-search-webzine-badge__main,
    .nc-search-webzine-badge__scope {
        display: block;
        line-height: 1;
    }

    .nc-search-webzine-badge__scope {
        font-size: 7px;
        font-weight: 900;
        opacity: 0.96;
    }

    .nc-page-documents {
        width: min(1060px, 100%);
        margin: 8px auto 0;
    }

    .nc-search-bar:focus-within { 
        transform: translateY(-1px);
        box-shadow: 0 25px 60px rgba(66, 133, 244, 0.18); 
        border-color: var(--gemini-blue); 
    }

    .nc-search-bar input { flex: 1 1 auto; min-width: 0; background: transparent; border: none; outline: none; color: #000; font-size: 20px; font-weight: 500; }
    
    .nc-search-submit { 
        background: linear-gradient(90deg, #4285f4, #9b72cb); color: #fff; border: none;
        flex: 0 0 auto;
        padding: 16px clamp(28px, 4vw, 45px); border-radius: 22px; font-weight: 800; cursor: pointer; transition: 0.3s;
        white-space: nowrap;
    }

    @media (max-width: 980px) {
        .nc-ai-inner {
            max-width: 760px;
        }

        .nc-search-line {
            width: min(640px, 100%);
            flex-direction: column;
            align-items: stretch;
            gap: 0;
        }

        .nc-search-action-group {
            position: static;
            left: auto;
            right: auto;
            top: auto;
            align-self: center;
            margin-top: 16px;
            transform: none;
        }

        .nc-page-documents {
            margin-top: 4px;
        }
    }

    @media (max-width: 768px) {
        .nc-main-wrapper { margin-top: 0 !important; }
        .nc-ai-search-container { margin-top: 0; padding: 0; min-height: auto; }
        .nc-ai-inner { padding: 0 22px; margin-top: 4px; }
        .nc-ai-inner h2 { font-size: 32px; line-height: 1.2; margin-bottom: 20px; }
        .nc-search-line { width: 100%; flex-direction: column; align-items: stretch; }
        .nc-search-form { flex-basis: 100%; }
        .nc-search-bar { padding: 9px 9px 9px 22px; }
        .nc-search-bar input { font-size: 16px; min-width: 0; }
        .nc-search-submit { padding: 14px 24px; }
        .nc-search-action-group {
            position: static;
            left: auto;
            right: 0;
            top: auto;
            align-self: center;
            margin-top: 14px;
            gap: 5px;
            transform: none;
        }
        .nc-search-relay-link { height: 56px; width: 42px; }
        .nc-search-relay-badge {
            left: 3px;
            top: -22px;
            min-width: 40px;
            height: 17px;
            padding: 0 6px;
            font-size: 9px;
        }
        .nc-search-webzine-badge {
            left: -6px;
            top: -30px;
            min-width: 70px;
            height: 25px;
            padding: 2px 6px;
            font-size: 7.4px;
        }

        .nc-search-webzine-badge__scope {
            font-size: 6px;
        }
        .nc-page-documents { margin-top: 8px; }
    }

    @media (max-width: 520px) {
        .nc-ai-inner {
            padding: 0 16px;
        }

        .nc-search-bar {
            gap: 8px;
            padding-left: 18px;
            border-radius: 24px;
        }

        .nc-search-submit {
            padding: 12px 18px;
            border-radius: 19px;
            font-size: 13px;
        }

        .nc-search-action-group {
            margin-top: 12px;
        }

        .nc-search-relay-link {
            height: 50px;
            width: 38px;
        }
    }

    @media (max-width: 380px) {
        .nc-search-bar {
            flex-direction: column;
            align-items: stretch;
            padding: 10px;
            border-radius: 22px;
        }

        .nc-search-bar input {
            width: 100%;
            min-height: 32px;
            text-align: center;
        }

        .nc-search-submit {
            width: 100%;
            padding: 11px 14px;
        }
    }

    .admin-only-menu { 
        display: inline-flex; align-items: center; gap: 8px; 
        background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(0,0,0,0.05); padding: 10px 22px; 
        border-radius: 15px; cursor: pointer; font-size: 12px; font-weight: 800; color: #333;
        transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }
